bugsnag / bugsnag-api-ruby

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

Base href bug with pagination and custom endpoint #4

Closed ggilder closed 5 years ago

ggilder commented 9 years ago

If I configure the Bugsnag API client with a custom endpoint and auto pagination, it appears that the pagination links revert to http://localhost as the base href:

client = Bugsnag::Api::Client.new(
  auth_token: "[TOKEN]",
  endpoint: "http://bugsnag.mycompany.com",
  auto_paginate: true,
  per_page: 100,
)
client.error_events('[ERROR_ID]')
# => Bugsnag::Api::ServiceUnavailable: GET http://localhost/errors/[ERROR_ID]/events?direction=desc&offset=54f889aa3c83d80c1110fd12&per_page=100&sort=received_at: 503 - from /Users/gabriel/.rvm/gems/ruby-2.1.2/gems/bugsnag-api-1.0.2/lib/bugsnag/api/response/raise_error.rb:16:in `on_complete'
ggilder commented 9 years ago

cc @loopj

snmaynard commented 9 years ago

@ggilder is this with your internal bugsnag instance? Its more likely to be a serverside issue than in the lib itself.

ggilder commented 9 years ago

Yep, internal instance. Should I just email in a bug report then?

snmaynard commented 5 years ago

This has been fixed a long time ago on the server side and dropped through the cracks - closing.