Nuxt 3 server api functions not working when converted to a worker for CF Functions #1117
Unanswered
mattgrah-am
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
am currently writing an Algolia indexer and webhook, however I am having some headaches where the functions work perfect in local, but when they are uploaded to Cloudflare as functions I am getting the following errors:
The indexer as an algolia issue where when trying to access the index it returns a 500 error with the message Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].
The webhook as the same above message, however I am also having issues with crypto, where bodyHmac returns as [Function: fn$1] and not the encrypted string.
Below is the code for each:
index.ts - https://gist.github.com/mattgrah-am/4ced19d9f8124cb7d8789c303b5c7049
webhook.ts - https://gist.github.com/mattgrah-am/0cbe9f5b9dc2a2bb08ef59f5030ef78c
I understand that this is a lot to digest, and don’t expect full support, I was just hoping to get some guidence to where I am going wrong between local host and moving these to a cloudflare function.
Beta Was this translation helpful? Give feedback.
All reactions