question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StorageError with other packages

See original GitHub issue

I am using the blob client to upload files to Azure storage. It’s been fine but I’ve been updating the packages across my project and the upload is failing with the error below. Seems to me that the error is coming from the library and not from Azure (since I didn’t see a request go out) while checking if the container exists.

Having played around with the packages, it seems like one of the other packages I’m using is making this library act up. I triple checked the access keys and they are matched up.

Environment

NodeJS: v6.9.3 (tried with v7.3.0 as well)

"dependencies": {
    "applicationinsights": "^0.17.1",
    "azure-storage": "^1.4.0",
    "body-parser": "~1.15.1",
    "busboy": "^0.2.13",
    "composable-middleware": "^0.3.0",
    "compression": "~1.6.2",
    "connect-mongodb-session": "^1.3.0",
    "cookie-parser": "~1.4.2",
    "ejs": "^2.5.5",
    "errorhandler": "^1.5.0",
    "express": "^4.14.0",
    "express-jwt": "^5.1.0",
    "express-session": "^1.14.2",
    "humanparser": "^1.1.1",
    "jsonwebtoken": "^7.2.1",
    "lodash": "^4.17.4",
    "method-override": "^2.3.7",
    "moment": "^2.17.1",
    "mongoose": "^4.7.6",
    "morgan": "~1.7.0",
    "passport": "~0.3.2",
    "passport-local": "~1.0.0",
    "q": "^1.4.1",
    "sendgrid": "^4.7.1",
    "serve-favicon": "^2.3.2",
    "socket.io": "^1.7.2",
    "socket.io-client": "^1.7.2",
    "socketio-jwt": "^4.3.4",
    "stripe": "^4.14.0",
    "twilio": "^2.11.1"
  }

Actual

Receiving a 403 from the library and no requests are being made to Azure (monitored by Fiddler)

{"name":"StorageError","message":"Forbidden","code":"Forbidden","statusCode":403,"requestId":"21bb0273-0001-0069-75cc-66a5b2000000"},"status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"api/attachments/upload","data":{"file":{}},"_isDigested":true,"_chunkSize":null,"headers":{"Accept":"application/json, text/plain, */*","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ODZkNjA1Nzk1MTg3ZTJlNjA0OWEyNjciLCJpYXQiOjE0ODM1NjMxNTUsImV4cCI6MTQ4NDg1OTE1NX0.UFTiNn8yni3vYyeStyCTxDduK6FRESx0owI2EK9V45U"},"_deferred":{"promise":{}}},"statusText":"Internal Server Error"}

Exptected

A 200 and upload of the file to the Azure storage account.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jan 5, 2017

Can confirm this error. Using the azure-storage@1.4.0 and applicationinsights@0.17.1 packages in an Azure Function blocks all calls to any Azure Storage client.

0reactions
kowsheekcommented, Jan 5, 2017

Thanks @kamilszostak!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import azure.storage error - python - Stack Overflow
The problem is coming from the name of your script/module which is named azure.py . Python imports it as the first one in...
Read more >
Unable to get azblob.StorageError for block blob operations
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external ...
Read more >
Class StorageError (2.24.2) | Java client library | Google Cloud
Structured custom BigQuery Storage error message. The error can be attached as error details in the returned rpc Status. In particular, the use...
Read more >
azfile - Go Packages
Package azfile allows you to manipulate Azure Storage shares, ... See the StorageError interface for more information and an example of how ...
Read more >
Failed on #3 try of uploading data package to blob storage ...
Failed on #3 try of uploading data package to blob storage, error message: System.Reflection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found