bugsnag / bugsnag-api-ruby

BugSnag API toolkit for Ruby
Other
21 stars 15 forks source link

Parsing of datetimes in request params #25

Open tsujigiri opened 4 years ago

tsujigiri commented 4 years ago

I tried to get the request params of a few failed requests against an API endpoint of ours from Bugsnag. The request params contained datetimes. bugsnag-api seems to try to parse datetimes into Time objects. In my case, they ended up being wrong. The datetimes were formatted like this: "10:27:13 Mar 27, 2020 PDT". Without information about the formatting, it will be hard to guess the right format and parse it correctly in some cases. Datetimes probably shouldn't be parsed at all for request params.

mattdyoung commented 4 years ago

Hi @tsujigiri

Could you contact support@bugsnag.com with an example of the API request you're making and details of which Bugsnag project this is on so we can try to reproduce the behavior?

tsujigiri commented 4 years ago

:heavy_check_mark:

xljones commented 4 years ago

Hey @tsujigiri! we've not received anything at support@bugsnag.com just yet.

tsujigiri commented 4 years ago

That's weird. Did you check your spam folder? :grimacing:

tsujigiri commented 4 years ago

I sent it again.

mattdyoung commented 4 years ago

@tsujigiri - received thank you!