-
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
Ping issue - Raygun4js v3.1.0 #529
Comments
For visibility: This has been escalated to the team to investigate. |
We've reverted version 3.1.0 from our CDN to the prior version of 3.0.1. You can verify the version loaded here. 3.1.0 was not yet pushed to any other package repositories or release sites. Apologies for the issue. Thank you for reporting it too. I won't close this ticket. Once the team have completed the investigation and code changes, they'll update with more detail (likely in the next 24 hours). |
Cheers mate, thanks for prompt replies |
Hello, |
Hey Mate, We are using the recommended async method for setup. No major JS Frameworks. We have the script loading on every page, however we do not setup the apiKey on every page. I believe it is those pages that we haven't configured that were making the 404 requests. // on some pages. <script type="text/javascript"> rg4js('apiKey', 'paste_your_api_key_here'); rg4js('enablePulse', true); </script> |
Thanks that helped a lot. The issue lies with how Raygun4js sets its self up internally. If no setup calls are made (such as setting the apiKey or enabling a product) then the default URL is not set which then caused the issues you encountered. We have implemented checks that will prevent the pings from being sent in these cases. Given that we are heading into the weekend we will wait until next week to deploy the new patched version. Thank you for your help in identifying this issue |
Sweet, glad to help |
Hey @tahmernightingale, Just letting you know that we have published the patched version of 3.1.0 to the CDN. If you are curious you can find the fix in this PR. Thank you again for your help! |
Cheers Hamish, looks good thanks |
Raygun4js - v3.1.0 - 2024-05-30
var url = Raygun.Options._raygunApiUrl + "/ping?apiKey=" + encodeURIComponent(Raygun.Options._raygunApiKey);
Causing multiple 404's requests to
undefined/ping?apiKey=undefined
The text was updated successfully, but these errors were encountered: