-
Notifications
You must be signed in to change notification settings - Fork 31
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
METEOR_SETTINGS JSON parsing issues #55
Comments
I am having the same issue. I was about to open this particular issue before i saw this issue open. I have also validated my JSON and it works locally. Don't know why it refused to work. Any help from anyone will be appreciated. |
How are you setting |
I am using x.settings.json. I also tried directly specifying the file path (instead of allowing node_env to get it by default) but both failed. I have not tried directly typing it, and do not have access to that machine at the moment. I will try that later to see if it works. |
I was able to deploy https://meteor-test-hxhiznyapg.now.sh/ using the settings file JSON you posted above and it deployed with no issues.
Can you deploy using the
|
interestingly, today I was originally getting a different error. I had to remove all spaces from the file in order to get it to run (altho this was not an issue last night, and I dno't believe I'd changed anything). At any rate, I had it with the debug flag and did indeed get the correct METEOR_SETTINGS= output, where everything looks fine, although the error at the end is the same. Also, I tried typing the settings directly into the command line. In this case, the output command that the debugger is running has all of the double quotes stripped out of it. This ends in the same 'invalid json' result, altho I would expect that in this case. Still confused, but appreciate the quick responses a lot. |
Why was this closed? |
I was quickly going through the issues and had thought you were able to get the deploy working. But now reading over this more carefully it seems you were only able to get it working when you removed all whitespace from the Could you reproduce the error and then post the |
Same error here. Even with empty settings:
production.settings.json:
Called with
Maybe it is a Windows issue? Update |
This is still an issue on Windows. Line 46 in 5a8df60
But nothing helped. Can someone else give it a try? Just create a
And call deployment with |
There appears to be a similar problem in |
Getting rid of all the whitespace in the settings.json file also allowed it to deploy correctly using the non-secrets method too. The process of building stalls a lot on Windows. If I listen to my laptop fans spin up and down, and watch the little spinner thing in the terminal, I can tell when it stalls, and press |
|
Nothing I did could get this to work on vanilla Windows, but I was able to eventually get it to deploy using Windows Subsystem for Linux (after jumping through some hoops). I can't actually get meteor to run (due to the mongo locking issues) but it doesn't have to to be able to build and deploy with this tool. So there's a workaround if anyone needs it. It does that weird stall thing in Ubuntu (on WSL) too, but it's more obvious - basically the little spinner wheel (if you are using |
Deprecating in favor of meteor-hero. |
After 'Container Started' but before 'Deployment Complete!' I get the following error:
I've edited the json above to hide my data, but you can see what it is and it is in fact valid. The site runs fine locally without errors.
I've thrown it into json validators several times to make sure I wasn't missing anything. I even typed everything manually into a new file to make sure copying didn't accidentally snag some weird character. No dice so far. Any ideas on what I can check?
The text was updated successfully, but these errors were encountered: