Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

500 Internal Error caused by invalid array lenght #31

Open
davidecorradini opened this issue Feb 9, 2021 · 0 comments
Open

500 Internal Error caused by invalid array lenght #31

davidecorradini opened this issue Feb 9, 2021 · 0 comments

Comments

@davidecorradini
Copy link

Hello, during the usage of your API instance on Heroku, some of my requests obtained a 500 Internal Error, caused by an invalid array length.

In the species endpoint, with the following request I got the following response:
/species?fields=IPcJyhzl&limit=-824525682274219948

RangeError: Invalid array length
    at Function.router.render (/app/src/app.js:46:19)
    at /app/node_modules/json-server/src/server/router/index.js:77:12
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)
    at /app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
    at next (/app/node_modules/express/lib/router/index.js:275:10)
    at /app/node_modules/express/lib/router/index.js:635:15
    at next (/app/node_modules/express/lib/router/index.js:260:14)
    at next (/app/node_modules/express/lib/router/route.js:127:14)

In the locations endpoint, with the following request I got the following response:
/locations?fields=tqkdIGXe&limit=-5144637366675912606

RangeError: Invalid array length
    at Function.router.render (/app/src/app.js:46:19)
    at /app/node_modules/json-server/src/server/router/index.js:77:12
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)
    at /app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
    at next (/app/node_modules/express/lib/router/index.js:275:10)
    at /app/node_modules/express/lib/router/index.js:635:15
    at next (/app/node_modules/express/lib/router/index.js:260:14)
    at next (/app/node_modules/express/lib/router/route.js:127:14)
@davidecorradini davidecorradini changed the title 500 Internal Error cased by invalid array lenght 500 Internal Error caused by invalid array lenght Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant