Denver Dev && Song Builder
Nothing here yet.
Photo by <a href="https://unsplash.com/@helloimnik?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Nik</a> on <a href="https://unsplash.com/photos/MAgPyHRO0AA?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Hi, thanks for reading and for leaving a comment! Short answer: I have no idea what’s causing that error 🧐 Long answer: can you tell where in the process the error is happening? After quickly reading thru this SO post: https://stackoverflow.com/questions/16573332/jsondecodeerror-expecting-value-line-1-column-1-char-0 if looks like the main causes of that error are either reading an empty json file or trying to read a server non-success HTTP response as a json. A lot could have changed since I wrote this post 6 months ago in terms of the api, buildpack, etc. first I’d confirm you recheck each step in this tutorial, specially copying that json blob into the Heroku secrets. If everything looks good and you didn’t miss a character copy pasting or add an extra quotation mark somewhere etc, I’d try enabling the verbose error logging I mention in the last paragraph to see if heroku’s pipeline can give you any more error specifics about what exactly was trying to read and parse a json that was missing (was it something in Django like the fetch call? Was it something in the build pack trying to making the json credentials file?) If you have a public repo add the link here and i can take a look. Is it working for you locally but just not deploying?
Excited to dig into this; looks really interesting. Heads up, I think there’s a small towards the beginning: “PorsgreSQL”. At first I was like “oh man there’s ANOTHER type of db I have to learn?” Lol. Thanks for the article!