-
Notifications
You must be signed in to change notification settings - Fork 60
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
[HELP] POST Request is being blocked with a 504 error #567
Comments
Hi @jvinters By default Faro uses the To do so, you need to initialize a customized initializeFaro({
// ...
transports: [
new FetchTransport({
url: `http://my-endpoint/collect/api-key`,
requestOptions: {
headers: { foo: 'bar' },
},
}),
],
// ...
}); |
Hello, thanks for the quick response. I was able to add the headers with the above code. The request is still failing. Now the status just says "blocked:other" and the console says "ERR_BLOCKED_BY_CLIENT" and "TypeError: Failed to fetch". Any ideas on how to solve this? |
@jvinters could you solve the problem and can we close the issue? |
@codecapitano No I cannot solve this problem, which Is why I asked for help. Please reopen, this issue is not closed. |
Oh dang, I closed the issue by accident. |
@jvinters do you have any privacy extensions like adblockers running? Does it happen when all extensions are turned off (also the built-in extensions of the browser, if any). |
@codecapitano Yes it happens with adblock disabled. Also happens on firefox and edge which don't have any extensions. |
Posted tracing requests are being blocked with a 504 error (service worker)
Instrumentation seems to be working correctly, spans are being generated, when the request is POSTed there's a 504 blocked error. I can take the same request and send it from postman with no issue.
On a Angular 18, with service worker.
I believe its an issue with the server worker blocking the request.
How can I add a header (ngsw-bypass=true) to each tracing request? I tried an HttpInterceptor but I assume the service has its own HttpClient dependency so I cannot figure out how to supply my own Interceptor.
The text was updated successfully, but these errors were encountered: