Error","msg":"Error occurred while fetching the list of blobs"

JK 1 Reputation point
2024-05-15T15:31:29.9933333+00:00

I am getting the errors from the node application which needs to listen to the event hub. Event hub connectionString contains readwrite policy. I can't figure it out.

{"level":20,"time":1715786690042,"pid":18,"hostname":"my-service-[redacted secret my-service-events-secrets:MONGO_COLLECTION_NAME]-7c69c6999c-cgmbv","fullyQualifiedNamespace":"sp-my-service-dev-eh.servicebus.windows.net","eventHubName":"sp-my-service-dev-eh1","consumerGroup":"main_consumer","partitionId":"","msg":"consumerClient processError"}

{"level":50,"time":1715786690043,"pid":18,"hostname":"my-service-[redacted secret my-service-events-secrets:MONGO_COLLECTION_NAME]-7c69c6999c-cgmbv","stack":"Error: Error occurred while fetching the list of blobs. \nFetchError: request to https://storagename.blob.core.windows.net/spcloud[redacted secret my-service-events-secrets:MONGO_COLLECTION_NAME]?prefix=sp-my-service-dev-eh.servicebus.windows.net%2Fsp-my-service-dev-eh1%2Fmain_consumer%2Fownership%2F&include=metadata&restype=container&comp=list failed, reason: getaddrinfo EAI_AGAIN storagename.blob.core.windows.net\n at BlobCheckpointStore.<anonymous> (/usr/src/app/node_modules/@azure/eventhubs-checkpointstore-blob/dist/index.js:111:23)\n at Generator.throw (<anonymous>)\n at rejected (/usr/src/app/node_modules/tslib/tslib.js:112:69)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections

(internal/process/task_queues.js:95:5)","type":"Error","msg":"Error occurred while fetching the list of blobs. \nFetchError: request to https://storagename.blob.core.windows.net/spcloud[redacted secret my-service-events-secrets:MONGO_COLLECTION_NAME]?prefix=sp-my-service-dev-eh.servicebus.windows.net%2Fsp-my-service-dev-eh1%2Fmain_consumer%2Fownership%2F&include=metadata&restype=container&comp=list failed, reason: getaddrinfo EAI_AGAIN storagename.blob.core.windows.net"}

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,511 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,034 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anand Prakash Yadav 6,940 Reputation points Microsoft Vendor
    2024-05-16T11:48:33.8266667+00:00

    Hello JK,

    Thank you for posting your query here!

    As per the information you have provided, it seems you are using the correct curl command to retrieve information about the container from Azure Blob Storage.

    However, the error message you received suggests an authentication issue.

    To begin with, please check if the SAS key includes the necessary permissions (sp=rl for read access, for example) for listing containers. Also, ensure that the SAS token has not expired.

    Please confirm that the storage account settings have no restrictions or firewall rules blocking access. If the issue persists, try to regenerate the SAS key with appropriate permission and check if that helps.

    Do let us know if you have any further queries. I’m happy to assist you further.

    0 comments No comments