Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotel_offers_by_hotel not working properly #40

Closed
nans64 opened this issue Nov 12, 2019 · 2 comments
Closed

hotel_offers_by_hotel not working properly #40

nans64 opened this issue Nov 12, 2019 · 2 comments
Labels

Comments

@nans64
Copy link

nans64 commented Nov 12, 2019

Description

I am trying to use amadeus.shopping.hotel_offers_by_hotel.get(hotelId: "RWPARRCR")
The response is positive the the result is always empty.
I tried with different hotel ID maybe I am missing something out there...

Steps to Reproduce

  1. amadeus.shopping.hotel_offers_by_hotel.get(hotelId: "RWPARRCR")
  2. => #<Amadeus::Response:0x00005602d532ae78 @http_response=#<Net::HTTPOK 200 OK readbody=true>, @request=#<Amadeus::Request:0x00005602d534b600 @host="api.amadeus.com", @port=443, @ssl=true, @scheme="https", @verb=:GET, @path="/v2/shopping/hotel-offers/by-hotel", @params={:hotelId=>"RWPARRCR"}, @bearer_token="Bearer i0q0KquqTF5EYsauqdIhQ6rqXRo8", @client_version="3.3.0", @language_version="2.5.1", @app_id=nil, @app_version=nil, @headers={"User-Agent"=>"amadeus-ruby/3.3.0 ruby/2.5.1", "Accept"=>"application/json, application/vnd.amadeus+json", "Authorization"=>"Bearer i0q0KquqTF5EYsauqdIhQ6rqXRo8"}, @http_request=#<Net::HTTP::Get GET>>, @status_code=200, @parsed=true, @body="{}", @result={}, @data=nil>

__Expected Behavior: I should get the list of the rooms that are available

__Actual Behavior: I get an empty answer

__Stable Behavior? 100%

Versions

[What version of Ruby/Rubygems are you running? What Operating System are you on?]
2.5.1

Checklist

Please make sure you checked the following:

  • Are you running Ruby 2.2+? Yes
  • Did you download the latest version of this gem? 3.3.0
@alnacle
Copy link
Contributor

alnacle commented Nov 14, 2019

Thanks for reporting this! Seems to be a problem in our backend. We are already working on it to fix it.

@tsolakoua
Copy link
Contributor

The Hotel Search v2 will be decommissioned soon and Hotel Search v3 is already live, so I close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants