You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i had a lot of trouble with this.
We have a NerxtJs app. We use the route handlers as a BFF (Backend For Frontend) to keep the tokens in the backend.
The problem is: When the instrumentation is active (with only the service name)
An unhandled exception has occurred while executing the request.
System.IO.IOException: Unexpected end of Stream, the content may have already been read by another component.
Does the vercel otel package modify the body in any way ?
But i tested everything: the dotnet api, the next middleware, the docker environment, the Reverse Proxy (Traefik) configuration.
The only thing that's causing the problem is the instrumentation hook
Tested on both Next version 14.2.18 and 15.0.3 and we have the same error
the route handler code :
constfd=awaitreq.formData();constquery=awaitfetch('http://localhost:5098/api/test-formdata',{method: 'POST',body: fd,})if(query.ok){console.log('working')}else{console.log('query not ok');}
and the input file that send the formdata to the Next Api
I can confirm this also happens with a Python backend using FastAPI.
On the Python side, we get the following: {"name": "multipart.multipart", "message": "Did not find boundary character 49 at index 26", "timestamp": "2025-01-13 10:48:46,437", "level": "WARNING"}
The error we get on NextJS is There was an error parsing the body. Going with the manual open-telemetry setup solved this issue.
Hello I've seen the same issue, when I have instrumentationHook enabled.
experimental: {instrumentationHook: true,},
FormData is like getting ignored in fetch method.
I found a work araound and basically it's adding on fetchOptions which solve the issue, but that is not the point, because it's getting ignored from telemetry.
Hi, i had a lot of trouble with this.
We have a NerxtJs app. We use the route handlers as a BFF (Backend For Frontend) to keep the tokens in the backend.
The problem is: When the instrumentation is active (with only the service name)
Our Other api (in .Net) throw an error
Does the vercel otel package modify the body in any way ?
But i tested everything: the dotnet api, the next middleware, the docker environment, the Reverse Proxy (Traefik) configuration.
The only thing that's causing the problem is the instrumentation hook
Tested on both Next version 14.2.18 and 15.0.3 and we have the same error
the route handler code :
and the input file that send the formdata to the Next Api
The text was updated successfully, but these errors were encountered: