Skip to content

Setting new connection options breaks API integration #5

Description

@bookwyrm

I tried to add a request timeout connection option, but it caused the API request to stop requesting JSON data and get XML data which was generated a JSON parse error.

client = Tradier::Client.new({
  access_token: 'token values here',
  connection_options: { request: { timeout: 30 } },
})

I would have expected my connection_options to be merged with default connection options and have the headers: { :accept => 'application/json' } configuration maintained.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions