-
Notifications
You must be signed in to change notification settings - Fork 395
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 end of JSON input #1602
Comments
Hi @terhechte, I have not been able to reproduce this issue. Can you provide any more information about your project that might help give us some insight? Is that the only output you received or was a build ID returned? What language runtime are you using? As this doesn't seem to be a general doctl issue at first glance, I'd encourage you to open a support ticket. The support team has more context on your account and is able to discuss more details specific than in a public issue. |
Hey @andrewsomething, I have the same issue. There also seems to be another thread (#1345) where people have a similar issue, though I cannot resolve it by building from source. I believe I've found the culprit, though, at least in my case: it's Nix 😅 I ran into this even with a fresh install from source using a sample:
Digging through your code (sorry) I noticed that a part of setting up the serverless environment includes downloading Node v18. Unfortunately Nix cannot run non-Nix executables, which is helpfully explained when I attempt to run this myself:
To verify this, I can do a very dirty hack that's sure to give any Nix nerd reading this an aneurysm:
I believe running However, my $0.02 here is that I don't really expect Please let me know if this helps or if you need more info (or testing) from my side. I would be happy to contribute a PR as well if you let me know what is your preference for the solution. |
I suddenly can't deploy anymore with
doctl
.I'm just doing
./doctl serverless deploy --remote-build --verbose-build .
and am getting the following error:
Error: unexpected end of JSON input
.I tried:
brew
(I'm on macOS)./doctl
doctl
and tried the same. Same error.I'd really like to deploy the fixes to my server less function but I can't.
The text was updated successfully, but these errors were encountered: