Getting error 500/429 when setting up gpt3

I keep getting error 500 when trying to send a request through node/nextjs.

Though, the request goes through in curl.

for I.e.
getting error 500 through this sample project:

error 429 through this quick start open ai project

Something might be wrong with my API key??