Skip to content

Net::HTTPBadResponse: wrong status line: #1

@drewbt

Description

@drewbt

I have run the sample code:

require 'bigcommerce'

api = BigCommerce::Api.new({
    :store_url => "https://www.mybigcommercestoreurl.com",
    :username  => "admin",
    :api_key   => "myapikey"
})

which returns #<Bigcommerce...... ...>

but then this command

api.get_time

returns this:
Net::HTTPBadResponse: wrong status line: "<!DOCTYPYE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">"

Could anyone assist?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions