Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

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

Closed
AbelHu opened this issue Sep 21, 2015 · 2 comments
Closed

Comments

@AbelHu
Copy link
Member

AbelHu commented Sep 21, 2015

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
@AbelHu AbelHu changed the title P0 Bug: Cannot insert a record after querying record from a table v0.7.0 P0 Bug: Cannot insert a record after querying record from a table Sep 23, 2015
@devigned devigned changed the title v0.7.0 P0 Bug: Cannot insert a record after querying record from a table Bug Azure v0.7.0: Cannot insert a record after querying record from a table Mar 12, 2016
@devigned devigned changed the title Bug Azure v0.7.0: Cannot insert a record after querying record from a table Cannot insert a record after querying record from a table (Azure v0.7.0) Mar 12, 2016
@yaxia
Copy link
Member

yaxia commented Jun 28, 2016

It is fixed in azure-storage 0.10.1. Please take a try. Thanks.

@AbelHu
Copy link
Member Author

AbelHu commented Jul 5, 2016

azure-storage-ruby works. Thanks.

@AbelHu AbelHu closed this as completed Jul 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants