-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error [OTLPExporterError]: Unknown error TypeError: fetch failed
#19
Comments
I'm not sure why either to be honest. We're doing a pretty bog standard fetch: https://github.com/RichiCoder1/opentelemetry-sdk-workers/blob/main/packages/opentelemetry-sdk-workers/src/exporters/OTLPCloudflareExporterBase.ts#L103. I could try logging out more details about the specific error to maybe surface the specific issue. |
Yeah, it seemed straightforward. I think I'm misinterpreting the error message so I think this is more feedback than bug report. I added some logging to the bundled worker in the Quick Edit panel. Here's the success case and the error case The error is from the The "unknown error" and |
It's not a full fix since fetch is kind of opaque, but I'm updating the error message to at least hint it might be an export url issue. |
Not directly related, but for those encountering this error, couple things to note while debugging:
|
@Schachte I struggled to debug the port issue on a different project as well, but it is documented at https://developers.cloudflare.com/workers/platform/known-issues/#custom-ports |
Wow, I actually did not know that! I'll see about adding that to the readme, that seems easy to trip over. |
Yeah, here's where I joined the group who have been surprised by this cloudflare/cloudflare-docs#4299 (comment). At least it's documented now 🙃 . I believe |
Steps to reproduce
See https://stackblitz.com/edit/cloudflare-templates-gdw8ku?file=src%2Findex.ts
Given
logs
but with this change there are no errors logged.
I'm not sure what the difference is between those two URLs. In both cases,
response.ok
istrue
.I initially ran into this with an endpoint that was returning a 400, but then found this case which seems to trigger it even on a success.
It seems like there may be an error in the error handling/reporting itself. Perhaps an import isn't working as expected and a function's not available?
The text was updated successfully, but these errors were encountered: