I have added my github token to the environment variables for my site, and I am able to get the expected response in development. However, when I go to production I’m not getting a response from the api. It fails with a 404 error. Check it out here and in the screenshots below: https://5f05238f66008300072ed499--compassionate-perlman-425237.netlify.app/project.
Your screenshot doesn’t show what the request is. Could you provide a request-id for one of those requests? This shows how you can do so :[Support Guide] Netlify Support asked for the 'x-nf-request-id' header? What is it and how do I find it?
Thank you for getting back to me. Here is the request id: eb593d65-ad46-41fc-a927-bce75efd52fc-24030054
Please let me know if there’s any other information I can provide to help with this.
Hi, @JMo911, I see this
x-nf-request-id is a call to a function and the 404 is happening because there were no functions successfully deployed for that site.
The build logs for that deploy id (
6:46:43 PM: 0 new functions to upload
To resolve this, we need to find out why the functions don’t deploy with the build. Our initial troubleshooting guide is here:
I’m not seeing the functions directory being defined in the site build. I also don’t see a
netlify.toml file for this repository which is where that directory would be defined.
Would you please take a look at the functions debugging guide and try the suggestions there? I recommend starting with adding
netlify.toml to the repo and defining a functions directory in that file.
If guide above doesn’t help or if there are other questions, please let us know what you tried and what the results where. We are happy to keep working on this.
I have yet to work with a netlify.toml and functions. I’ll give this a shot tonight/tomorrow and report back. Thank you!
If there are other questions, we’re here and happy to answer. Likewise, if you find the solution on your own and want to share it here, we would love to hear about it!