Quantcast
Channel: Trying to fetch response from Goodreads API
Browsing latest articles
Browse All 72 View Live

Trying to fetch response from Goodreads API

Try pulling the latest version of the repo, it no longer uses an IIFE. Read full topic

View Article



Trying to fetch response from Goodreads API

Alright, so I went ahead and did that. I’m getting a 500 error on the Postman test. I doubled checked the api_key was pasted in my .env correctly but I can’t seem to get around this. Read full topic

View Article

Trying to fetch response from Goodreads API

Does your terminal running the backend tell you what the error is? Read full topic

View Article

Trying to fetch response from Goodreads API

Oh, I should point out the new version expects a GET request, in case you missed it. Read full topic

View Article

Trying to fetch response from Goodreads API

@JacksonBates Yeah I set it to GET on Postman and every time I send for a response, I get the 500 error plus the json response: { "success": false, "message": "Text data outside of root node.\nLine:...

View Article


Trying to fetch response from Goodreads API

Do you have a GitHub repo for this code? Read full topic

View Article

Trying to fetch response from Goodreads API

I don’t have a repo of the code on Github, no. Read full topic

View Article

Trying to fetch response from Goodreads API

It’s pretty hard to debug without seeing the code. I googled the specific error, but every result I found suggested a different cause - so all I can suggest without seeing the code is go through every...

View Article


Trying to fetch response from Goodreads API

I see. So I went ahead and created a repo with the code (https://github.com/Dusch4593/book-finder-app). The problem seems to be coming from the backend.js, inside the relay route. Read full topic

View Article


Trying to fetch response from Goodreads API

@JacksonBates I think I found the cause of the 500 error! The .env file wasn’t in the same directory as the backend.js file. I tested it on Postman and it returned the JSON with "success": true when...

View Article

Trying to fetch response from Goodreads API

You can just add src/.env to the .gitignore if the file is in a different folder. Read full topic

View Article

Trying to fetch response from Goodreads API

Okay so at this point, I’m trying to display the GET data to the front end but I can’t figure out how to get that data from backend.js to app.js. Is there a way to do that? Read full topic

View Article

Image may be NSFW.
Clik here to view.

Trying to fetch response from Goodreads API

Keep in mind I have a completely separated front end and back end…So, my back end could be on Heroku, while my front end could be served from GH pages, or Netlify for example. For this demo, I had my...

View Article


Image may be NSFW.
Clik here to view.

Trying to fetch response from Goodreads API

@JacksonBates So I went and tried to implement the front end and back end (easier to say ‘fullstack’?) and I’m running into the CORS access problem, despite experimenting with making changes in the...

View Article

Trying to fetch response from Goodreads API

Did you see the CORS stuff I added to my backend, in app.js? var cors = require("cors"); ... // Allow CORS from any origin app.use(cors()); (I omitted some code from the above example, but the full...

View Article


Trying to fetch response from Goodreads API

That did the trick! Thank you so, so, so much @JacksonBates for your patience and kindness in helping me with this. Thanks to you, I now have a little bit of experience with the backend aspect of web...

View Article

Trying to fetch response from Goodreads API

Glad to help, and congratulations for sticking with it - that’s the hard part. Read full topic

View Article


Trying to fetch response from Goodreads API

Just wanted to suggest, instead of creating a back-end server which would just do one task, but run full time which is expensive. A cheaper approach would be using function like AWS Lambda or Google...

View Article

Trying to fetch response from Goodreads API

Great! Could you show an example in code of how that replaces an expressjs backend? Read full topic

View Article

Image may be NSFW.
Clik here to view.

Trying to fetch response from Goodreads API

Sorry for the late reply, yes ill try to add an example in on weekends Read full topic

View Article

Trying to fetch response from Goodreads API

I’ll talk about the AWS lambda functions because all the other functions providers (Google, Salesforce) will employ a similar process. I took a reference from your repository...

View Article


Image may be NSFW.
Clik here to view.

Trying to fetch response from Goodreads API

Thanks for following up. I look forward to trying this out when I get a chance Read full topic

View Article


Trying to fetch response from Goodreads API

yes sure, let me know if you need any help. Read full topic

View Article

Trying to fetch response from Goodreads API

Just wanted to share my post for quickly getting started with functions and serverless framework,...

View Article

Trying to fetch response from Goodreads API

Read full topic

View Article

Browsing latest articles
Browse All 72 View Live




Latest Images