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

"Request is not defined" from node-postgrest backend #4

Closed
photz opened this issue Feb 17, 2023 · 2 comments
Closed

"Request is not defined" from node-postgrest backend #4

photz opened this issue Feb 17, 2023 · 2 comments

Comments

@photz
Copy link

photz commented Feb 17, 2023

Hi,
I followed the instructions for the node-postgrest showcase and am getting a 500 from the backend when I try some of the endpoints.

For example:

$ curl -i "http://localhost:3000/Products?select=ProductID&limit=3"
HTTP/1.1 500 Internal Server Error
content-type: application/json
Date: Fri, 17 Feb 2023 07:30:49 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

{"message":"Request is not defined","description":null}

This seems to be where this message is returned: https://github.com/subzerocloud/showcase/blob/main/node-postgrest/src/server.ts#L289

Environment:
Node v16.11.0
Docker version 20.10.14
Ubuntu 18.04

@ruslantalpa
Copy link
Member

It seems the Request object is supported from node 18+ (I tested on 19)

See if you can run it with a newer version of node. However, i will look into supporting older versions of node this weekend

Let me know how it went

thanks

@photz
Copy link
Author

photz commented Feb 17, 2023

Hi, thanks for the quick response. It works with Node 19. Should've thought of that myself before posting the issue. Sorry!

@photz photz closed this as completed Feb 17, 2023
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