I am running a Django server, along with a self-hosted Sentry server. I tried adding a call on my 500.html template to collect user feedback.
The sentry server correctly receives the initial 500 error, but does not receive the user feedback. I see in my javascript console a 404 error after clicking "Submit Crash Report" when trying to send a POST to django.mydomain.com/api/embed/error-page/?eventId=abcde...&dsn=%2F%2Fzxy...%40sentry.mydomain.com%2F2
Before this, there is a successful GET request to sentry.mydomain.com/api/embed/error-page/?eventId=....
Here is the trace of the error:
POST "http://django.mydomain.com/api/embed/error-page/?eventId=b96e57dcb… 404 (Not Found)
dsn=%2F%2F8d64f9e...%40sentry.mydomain.com%2F2".
(anonymous function) # raven.js:703
SentryErrorEmbed.submit # ?eventId=b96e57d…&dsn=%2F%2F8d64f9e…%40sentry.mydoma…:139
_submitBtn.onclick # ?eventId=b96e57d…&dsn=%2F%2F8d64f9e…%40sentry.mydoma…:65
Is it trying to send to the wrong domain? How do I fix this or further investigate?
I was using Sentry 8.0.5, and I upgraded to 8.5.1. This resolved my issue.
Related
First time using web workers and I get this error when I try to run it.
First I get a very generic error event sent to my worker.onerror handler. It does not have the message property, the only information is the property type which says error.
Looking at the network tab in dev tools, the request for the worker script looks like it succeeds but it only has provisional response headers and no content to preview.
Preview has:
failed to load response data: connection is closed, can't dispatch pending call to Network.getResponseBody
This caused me to waste about an hour searching for web worker errors. Anyway it turns out that you can get this error if you have a syntax error in your Javascript. At least that is what got me.
I installed a membership plugin named ARMember to my WordPress website. But it's file uploading filed is not working. When I try to upload a file, it fails and google console shows this error message.
"Failed to load resource: the server responded with a status of 404 (Not Found)"
you may check it here.
BlueMoonGems
Can someone please tell me how to fix this error..?
Thank you!
this is a problem that you need to contact the plugin creators about, this is not the place to look for a solution to such issue. However, you'll probably using an old version ( possible, but not sure ), the plugin is using wrong URL format to make ajax requests, which causes the error.
I'm following a React-Redux tutorial. My axios.post() is failing when running the app, but if I use that same URL and paste it into the browser's address textbox it works. Why would that happen?
Here is the call in my app:
const request = axios.post(`${ROOT_URL}/posts/${id}${API_KEY}`);
Here is the error, as shown in F12 in Chrome:
POST http://reduxblog.herokuapp.com/api/posts/120342?key=bob884 404
(Not Found)
Why would that fail when it's a good URL? If you click it, you'll see the response in the browser:
{"id":120342,"title":"SOLID","categories":"OOP","content":"SOLID is an
acronym..."}
When you click the link, the browser sends a GET request to the server.
A POST endpoint might not be available from the server side at that specific URL address.
Whenever the server is unable to find a URL with a specified method (GET / POST), it returns a 404 - Not found error. In this case, it doesn't find any POST method defined for that address.
You should consider changing the method to a GET request, if that's what you desire.
I was suspicious that the issue of seeing console errors "showing HTML as JS files" was caused by my attempt to redirect 404 errors. And then a comment on this reddit post suggested that this was a valid assumption... But how is this possible? By what means does a JS resource become HTML when 404s are redirected?
Application servers usually have default web pages to render HTTP error codes. For instance, these are the Apache 2.4 settings regarding custom error responses.
So, it's normal to get HTML responses for HTTP error codes if your application server is configured as such.
I am working in a c# mvc3 application in which requirement is to log all errors,i have managed to used Application_Error event on server and window.onerror event on client side for logging most of errors.
But when any content failed to load(Like image not found on server(Failed to load resource: the server responded with a status of 404 (Not Found) htt//examplehost/Content/Images/notexistingimage.png))
then none of above event fires.
How can I know when these errors occurs so that i may log them?