Closed mthomps4 closed 3 years ago
Thanks for the report. I could reproduce this error by putting "private_key" => "bad"
(or ""
) instead of a proper private key in the PEM format in my credentials
. Could you double-check that your credentials are valid?
Thanks for the quick response.
🤔
I took the JSON file and did a Node stringify
It looks ok at first, but on second glance the special characters may be throwing it off \
+
\n
\"private_key\":\"-----BEGIN PRIVATE KEY-----\\\MIIEvg...+43\\\\asdf\n ....
Any info on how you got your creds to a full string for ENV? Fairly certain that's it.
Update: Re-stringified.
Noticed that the line breaks had an extra \
find \\n
replace with \n
Was able to run {:ok, token} = Goth.fetch(Toolbox.Goth)
successfully! 🎉
Great, glad its fixed. Im gonna go ahead and close this but if folks keep running into this we can probably at least improve the error message.
Unsure what is missing here. Looking for advice.
Deps
application.ex
Error Trace