Storage Queue Node SDK. Unexpected sendMessage response.

stevemrf 96 Reputation points
2021-05-02T01:50:24.647+00:00

Hi Folks,

Using the sdk (@azure/storage-queue) is straightforward and I'm able to create, read and delete messages in a storage queue via an Azure static web app API function written in javascript.

The response I'm getting when adding a message to a queue is very verbose, around 56k, and includes details like the account shared key and extensive account and queue metadata. It is not the response detailed in the put-message docs.

This may be expected behaviour, I'm fairly new to azure queues so although I can code for it there's gaps in my knowledge and I haven't been able to find anything that explains a response of this nature. Would there be an option I can set to request a minimal response? That's a lot of data I'll never use. I only need an indication of success/failure.

If it isn't expected, I can send the responses. I would post now but I'm a bit nervous of posting without going over them carefully and removing any security data..

Thanks for any guidance you can offer, much appreciated.

Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
97 questions
{count} votes

2 answers

Sort by: Most helpful
  1. stevemrf 96 Reputation points
    2021-05-11T19:30:32.757+00:00

    So this is turning into a serious issue for me. Two weeks I've been looking for this info. It's a well established service, I'm surprised this is proving so difficult. This wasn't the first place I tried to find the information

    All I want to know is, is the response expected? It's not documented, as far as I can see, and exposes shared keys to services, which is a concern.

    If it is expected I can deal with it I just don't want to do extra work when there's no need as it means more services to manage. As nice as the Azure management tools are it's still a lot of extra work and expense.

    P.S. Serious not sarcastic question - would I get an answer to this if I bought a support package? What would paid support do differently here that makes it worth having?

    0 comments No comments

  2. stevemrf 96 Reputation points
    2021-05-25T20:56:50.92+00:00

    I'm still looking for a pointer to documentation that details the response I'm getting. The official put-message docs give no information regarding 56k of headers and metadata returned from a request, a far more concise response is given in docs & examples.

    Any pointer appreciated, a link to a document if available would be brilliant.

    Many thanks
    Steve