Skip to content
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

Unable to use get for all data inside my react state #107

Open
syedsimanta03 opened this issue Jan 27, 2020 · 1 comment
Open

Unable to use get for all data inside my react state #107

syedsimanta03 opened this issue Jan 27, 2020 · 1 comment

Comments

@syedsimanta03
Copy link

ERR

{message: "Request failed with status code 500", name: "Error", description: undefined, number: undefined, fileName: undefined, …}
code: undefined
columnNumber: undefined
config:
adapter: ƒ xhrAdapter(config)
data: undefined
headers: {Accept: "application/json, text/plain, */*"}
maxContentLength: -1
method: "get"
timeout: 0
transformRequest: [ƒ]
transformResponse: [ƒ]
url: "/book"
validateStatus: ƒ validateStatus(status)
xsrfCookieName: "XSRF-TOKEN"
xsrfHeaderName: "X-XSRF-TOKEN"
__proto__: Object
description: undefined
fileName: undefined
lineNumber: undefined
message: "Request failed with status code 500"
name: "Error"
number: undefined
stack: "Error: Request failed with status code 500↵    at createError (http://localhost:3000/static/js/0.chunk.js:46032:15)↵    at settle (http://localhost:3000/static/js/0.chunk.js:46253:12)↵    at XMLHttpRequest.handleLoad (http://localhost:3000/static/js/0.chunk.js:45507:7)"
__proto__: Object

server using 5000port react proxy enabled linked to 5000

postman is able to fetch but react is unable with axios...I'm getting error 500 on GET /resource requests, when resources is empty collection in MongoDB.

@Sefriol
Copy link
Contributor

Sefriol commented Feb 6, 2020

Most likely related: #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants