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

Cannot insert a record after querying record from a table (Azure v0.7.0) #14

Closed
yaxia opened this issue Mar 31, 2016 · 1 comment
Closed

Comments

@yaxia
Copy link
Member

yaxia commented Mar 31, 2016

Migrate the issue from the Azure SDK: Azure/azure-sdk-for-ruby#281

Always fail in inserting a record after querying records from a table.
The root cause is that the second requests uses the same Faraday connection with the first URI.

ARM returns below error:One of the request inputs is not valid.

The key is not correct in http_client.rb

def agents(uri)
  uri = URI.parse(uri) if uri.is_a?(String)
  key = uri.scheme.to_s + uri.host.to_s + uri.port.to_s
  @agents ||= {}
  unless @agents.key?(key)
    @agents[key] = build_http(uri)
  end
  @agents[key]
end
@yaxia
Copy link
Member Author

yaxia commented Jun 28, 2016

The issue has been fixed in 0.10.1.

@yaxia yaxia closed this as completed Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant