I am implementing a Function using Node . but while I am hitting the API it's giving authentication
- 0
- Web
Can anyone please help me with this issue?
can you show your index.js
Sure
Already given the screen shot
are you sure the app is running on localhost port 3000?
error code 500 means it's a server issue
nothing related to code tbh
for run the server I have followed this https://github.com/open-runtimes/open-runtimes/tree/main/runtimes/node-18.0
let me share my terminal Screen shot
please don't tag people just because you need help with something as it's very disruptive
sorry for this 😦
what did you put in the request headers?
I haven't put anything
if runtime says it needs an INTERNAL_RUNTIME_KEY and you don't pass the same value as the X-Internal-Challenge header you'll get a unauthorized error. Please make sure you read through https://github.com/open-runtimes/open-runtimes/tree/main/runtimes/node-18.0#local-development carefully
Okay let me check and Thank you 🙂
Recommended threads
- Password check in function
Hi, is there any way now for checking if the users password is correct in a function? I am creating a delete user function and before deleting I would like to c...
- Deployment fails after 15+ minutes: "Wai...
Hi, I'm Jayden. My email is jaydthom@haverford.org, and i'm having persistent deployment failures with my Next.js project. What happens: Push to GitHub trigg...
- Host Static HTML Site
I'm trying to deploy a static HTML website on my Appwrite self-hosted instance. I can't get it to work. I don't really understand the configuration. I have the ...