bugsnag / bugsnag-agent

A forwarding agent for BugSnag to guarantee minimal reporting impact.
MIT License
14 stars 9 forks source link

bugsnag-agent: Unsupported method ('OPTIONS') #19

Closed sirajul147 closed 6 years ago

sirajul147 commented 6 years ago

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:

[21/May/2018 06:51:22] "OPTIONS / HTTP/1.1" 501 -

Error in Browser: screen shot 2018-05-21 at 12 32 14 pm

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.

kattrali commented 6 years ago

Thank you for the detailed report, @sirajul147. We are looking into it.

g1-diagnal commented 6 years ago

@kattrali We are also facing the same issue. Any fixes available yet?