Giter Club home page Giter Club logo

azure-storage-rest-postman's People

Contributors

anweshgangula avatar kamranayub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

azure-storage-rest-postman's Issues

Using for ADLS Gen2?

Hello,

Thanks for the great Postman collection. I'm receiving the following error when attempting to send a GET request to Azure ADLS Gen2 storage.

Do you know if there is a difference between standard blob and ADLS Gen2 API that needs adjusting in your script?

<?xml version="1.0" encoding="utf-8"?>
<Error>
    <Code>AuthenticationFailed</Code>
    <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:c4a7afec-a01e-0067-3ea5-75a601000000
Time:2020-08-18T21:18:08.4735449Z</Message>
    <AuthenticationErrorDetail>The MAC signature found in the HTTP request '4C4uk2at6O4YXwwu13atahp/uGC4OMMENX8C5nfH8M0=' is not the same as any computed signature. Server used following string to sign: 'GET



x-ms-date:Tue, 18 Aug 2020 21:18:08 GMT
/asdltest/'.</AuthenticationErrorDetail>
</Error>

Not able to upload file using Put operation

Hi Kamranayub,

I have downloaded your postman collection and tried to perform some operations on blob. The GET operation works fine, but when I try to upload a file using PUT operation I am receiving the following error :

AuthenticationFailed Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:e0cdd282-301e-0030-656f-63747e000000 Time:2021-06-17T11:57:01.6867488Z The MAC signature found in the HTTP request '9GvSpqmVGuFV+HPPR4daDlzJV8MN6SELFrvINwgtbS0=' is not the same as any computed signature. Server used following string to sign: 'PUT

56

text/plain

x-ms-blob-type:BlockBlob
x-ms-date:Thu, 17 Jun 2021 11:57:01 GMT
x-ms-version:2017-04-17

Could you guide me on how to resolve the issue?

Problem when sending GET-request

Postman just reports: "There was an error in evaluating the Pre-request Script: TypeError: Cannot read property 'toString' of undefined"

I have setup all the variables needed

I am not able to use the collection. Could you please take a look? Many thanks!

Hi there,

Thank you so much for providing such a wonderful way to access the Storage Blob. I would appreciate if you could share some more details about how to use the collection(I am newbee for Postman).

I am trying to use ShardKey to access the storage blob and apparently you have made everything in the javascript. However, when i access the private blob. Do i need to add authentication header in the request inside of the collection? Please kindly check the request as follows:
image
I am not sure if i am using the collection correclty. Thanks for your insights in advance!

Set Blob Service Properties authorization fails

Hi there,

The PUT request fails authorization when sent by Postman 8.0.5, don't know about other versions.

As I found the problem is an incorrect signature generated because "content-length" header is not included in it.
Proved this by passing a correct value to signatureParts array instead of headers["content-length"] || "".

Construct CanonicalizedResource needs a pm.variable.replaceIn() to apply replaceIn to parameterized container

If you use a parameterized resource, such as {{azure_container}} in the URL, then this must be populated.
See the change to line 57 below, to add pm.variables.replaceIn() when building the account/container header line.
Failure to make this change means that authentication fails,

// Construct CanonicalizedResource
const canonicalResourceParts = [
    `/${pm.variables.get("azure_storage_account")}${pm.variables.replaceIn(pm.request.url.getPath())}`

Thanks for this super helpful piece of code!

Trying to replicate shared key auth in Typescript.

Hey, first of all thanks for the postman collection it works great. I am trying to use the same implementation of authorization in using typescript. What should I do for replacing the Pm.methods in typescript and get the same values as Pm.methods did

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.