I'm trying to set up a custom endpoint for bugsnag, by pointing my Javascript client, to a custom server, which have bugsnag client installed.
I've followed the documentation and set the config to listen to 0.0.0.0, so that I could call the endpoint from outside my server. It is up and running as expected.
I did a cUrl of the POST request and that is working as expected.
But the same is failing when I configure my Javascript client to point to the custom endpoint, in the OPTIONS call.
Expected behavior
OPTIONS method should be handled, which will be fired prior tp POST method (used by bugsnag.notify method) from Javascript Client.
Observed behavior
Error from bugsnag-agent:
[21/May/2018 06:51:22] "OPTIONS / HTTP/1.1" 501 -
Error in Browser:
Steps to reproduce
Setup the agent as per the dcumentation.
Configure the agent to listen to 0.0.0.0
Configure the Javascript client to notify the errors to the new endpoint.
Trigger an error and check error on browser and agent as well.
Version
Agent: v1.2.0
JS Client: v4
Additional information
[Insert any additional information]
Can't comment on Issues?
Some users have been unable to comment on Github issues when an adblocker extension is enabled.
We recommend temporarily disabling the extension, or if that fails, contacting support@bugsnag.com.
Hi,
I'm trying to set up a custom endpoint for bugsnag, by pointing my Javascript client, to a custom server, which have bugsnag client installed.
I've followed the documentation and set the config to listen to 0.0.0.0, so that I could call the endpoint from outside my server. It is up and running as expected.
I did a cUrl of the POST request and that is working as expected.
But the same is failing when I configure my Javascript client to point to the custom endpoint, in the OPTIONS call.
Expected behavior
OPTIONS method should be handled, which will be fired prior tp POST method (used by
bugsnag.notify
method) from Javascript Client.Observed behavior
Error from bugsnag-agent:
Error in Browser:
Steps to reproduce
Version
Agent: v1.2.0 JS Client: v4
Additional information
[Insert any additional information]
Can't comment on Issues?
Some users have been unable to comment on Github issues when an adblocker extension is enabled. We recommend temporarily disabling the extension, or if that fails, contacting support@bugsnag.com.