Comments (12)
We just bumped into this same problem when upgrading the Serverless Framework to v3 (previously v2). When we comment out serverless-sentry
from the plugins
section of our serverless.yml
, we are able to successfully run sls package
as before.
Here are the versions we are running:
- Node:
v17.4.0
- Serverless Version:
Framework Core: 3.3.0 (local) 3.0.0 (global)
serverless-sentry-lib
Version:^2.4.0
@sentrey/node
Version:^6.16.0
When attempting to run sls package...
, we get the following error message:
Error:
At least one of the plugins defines a validation schema that is invalid. Try disabling plugins one by one to identify the problematic plugin and report it to the plugin maintainers.
1 deprecation found: run 'serverless doctor' for more details
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
If we run sls doctor
as directed, we get the following instructions:
Running "serverless" from node_modules
1 deprecation triggered in the last command:CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
- ServerlessOffline for "apiKey", "corsAllowHeaders", "corsAllowOrigin", "corsDisallowCredentials", "corsExposedHeaders", "disableCookieValidation", "enforceSecureCookies", "hideStackTraces", "host", "httpPort", "httpsProtocol", "lambdaPort", "noPrependStageInUrl", "noAuth", "ignoreJWTSignature", "noTimeout", "prefix", "printOutput", "resourceRoutes", "useChildProcesses", "useWorkerThreads", "websocketPort", "webSocketHardTimeout", "webSocketIdleTimeout", "useDocker", "layersDir", "dockerReadOnly", "functionCleanupIdleTimeSeconds", "allowCache", "dockerHost", "dockerHostServicePath", "dockerNetwork"
Please report this issue in plugin issue tracker.
Starting with next major release, this will be communicated with a thrown error.
More info: https://serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA_V3
I am exploring disabling the deprecations from the new v3 schema and will update if a workaround solution is found.
from serverless-sentry-plugin.
Yep could do with some assistance on this too. I'm on serverless 3.11.0, node 14 and sentry plugin 2.4.0. This is the only thing that's stopping me using sls 3 now. Not sure how I can work around it, I need sentry.
You could use this guide to set up Sentry. Works perfectly. You might miss on some feature the plugin provided. But for basic error logging it has all the features you might need.
from serverless-sentry-plugin.
@DonaldoLog thanks a lot for your work!
@arabold it would be great if you release this one and we can go ahead with serverless v3
from serverless-sentry-plugin.
Anything new here? I have the same issue.
from serverless-sentry-plugin.
Yep could do with some assistance on this too. I'm on serverless 3.11.0, node 14 and sentry plugin 2.4.0. This is the only thing that's stopping me using sls 3 now. Not sure how I can work around it, I need sentry.
from serverless-sentry-plugin.
Same error. Dependencies I have -
serverless - 3.11.0
serverless-sentry - 2.4.0
serverless-sentry-lib - 2.4.0
serverless-sentry-lib - 2.4.0
@sentry/node - 6.19.6
Thank you @pierot for the quickfix. This should do the trick for now but hopefully we see this being addressed in near future.
from serverless-sentry-plugin.
Having the same issue here. Could anyone with a workaround please share it with us? 👀
from serverless-sentry-plugin.
you could use
npm i --save-dev arabold/serverless-sentry-plugin#pull/56/head
while the PR is checked
from serverless-sentry-plugin.
Any news here?
from serverless-sentry-plugin.
I've merged in the fix by @DonaldoLog and added another feature by @jonmast to upload source maps.
from serverless-sentry-plugin.
@arabold npm still shows 2.4.0. Do you have to publish it?
from serverless-sentry-plugin.
You're right. The publish aborted without me noticing. Sorry for that.
from serverless-sentry-plugin.
Related Issues (20)
- Create release failing on v2.0.0 HOT 2
- Cannot catch unhandled promise rejections HOT 8
- Add support for filtering events HOT 1
- READ.me file needs to be modified
- Any progress on uploading source maps? HOT 2
- Differences between this and official @sentry/serverless package HOT 2
- Add enable config
- Missing schema for `functions[].sentry` properties
- Serverless deployment fails with "fatal: No names found, cannot describe anything." HOT 23
- Sentry: Error uploading sourcemap file - Error: connect EADDRNOTAVAIL 35.188.42.15:443 - Local HOT 27
- Repository name capturing from remote is wrong HOT 4
- Uploading source map doesn't work when deploying function only HOT 1
- Function Timeouts lack of information HOT 2
- Data scrubbing/Trace sampling feature request HOT 1
- [bug] [regression] Error: Sentry: Error deploying release - Error: Too Many Requests HOT 4
- Add support for @sentry/node v7
- enable CaptureConsole as an option
- Uploading source maps to sentry when using serverless-plugin-typescript
- Add Custom Tags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-sentry-plugin.