-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Unexpected token : in JSON at position 19 at provider.request.then.catch #78
Comments
🤔 Thanks for opening @El-Fitz 👍 Just looked at the code and nothing looks suspicious. Are you able to see the error message the deployment manager returns in that case (maybe there are logs for the deployment manager in GCloud?). |
No such thing :'( But maybe it's normal, has nothing to do with serverless and everything to do with me being used to aws and not GCloud (but I don't have a choice here) Any idea on how / where I could intercept said error message ? |
Thanks for the reply @El-Fitz 👍 🤔 that sounds really strange. Maybe it's really smth. on Googles end since Cloud Functions is still in beta. @jtslear was able to retrieve some debug / log information (he described it here: #73 (comment)) Maybe you can do the same for this situation?! |
I'm having the exact same issue too with an identical stack trace. I also came across #59 at first and then found this after making sure my entry point is at root. I'm very new to Serverless but if I can do something to help let me know. |
Hey ! @pmuens Sorry for the delay, I was asked to work on something else
I'll also look into it on my side |
So, that was it. I rewrote my functions http events from
to And it now deploys correctly :-) But it means we can't specify the method :'( |
To be honest, I find GCP functions to be a real pain with it's handlers, modules and require handling. But I'll open something else for this :-) |
Thanks for looking into this @El-Fitz 👍 Thanks for sharing the solution! That makes sense!
AFAIK GCF creates a feature rich API endpoint for you. So you should be able to use different methods and don't need to specify what method you want to create (at least that's how it got started AFAIK).
Sound good! Looking forward to it 👍 |
Fixing this breaks
|
Any update on this? Sounds like an old breaking bug. |
This happened to me and I was able to run with |
This is a Bug Report
Description
What went wrong?
The deployment failed on a cryptic error looking a lot like Unexpected token : in JSON during deploy #59. But my index.js is at the project's root, so I guess it's not the same issue ? The serverless.yml and index.js are attached.
What did you expect should have happened?
The functions to be deployed
What was the config you used?
Meaning ?
Similar or dependent issues:
Additional Data
serverless.yml.zip
index.js.zip
The text was updated successfully, but these errors were encountered: