-
Notifications
You must be signed in to change notification settings - Fork 27
Using with javascript SDK: Queue message result undefined #154
Comments
Are you using the If so I have this working on a couple of my solutions with the functions mentioned. Seems a bit strange, do you get any result items in your callback? Can you paste some code? |
Hey, thanks for the response! `import 'mocha' describe('Test queue functions', () => {
}) As a result, the test message seems to go into the queue. I can get a queue result using azure cli. After running the code, the result equals undefined. If I run the same code against an actual azure storage, the test passes. I know the test doesn't consume the messages, but I dropped the messages from the test queue manually. This code just tries to show the nature of my problem. I'm missing something, I just don't know what... |
@pirtthar can you please run the following code on your environment:
What is the output of this script? In the console it should be similar to this:
The Azurite log output should be similar to this:
Can you confirm? Thanks! |
I ran the given code and the result was: ** CREATE QUEUE So I decided to remove my azurite docker image and start from the beginning. It turns out I didn't have the latest docker image. I updated and your example and my test both worked out of the box! It is a bit unclear what had happened in my environment, but in any case azurite works as it should. Thank you @jamesrichford and @arafato for your assistance and support! I truly appreciate what you guys are doing with Azurite. It gives us non-windows coders a great way to test storage-related code. |
@pirtthar How do you reference the docker-image? (which tag are you using) |
@thisisthekap IMHO the easiest way would be as described here https://github.com/arafato/azurite#pulling-from-docker-hub If you want the latest version use the
If you want a specific version, e.g. 1.8.5 pull the image like so:
|
I use the default setting, which is latest. I pasted the list of images that have been used in my environment. According to docker hub, 1.8.6 - 1.8.4. |
I would strongly recommend you to use specific version tags. if you use Additionally, specific version tags have the advantage, that everybody of your dev team uses exactly the same environment. |
Hi,
I'm having trouble using the emulator through the javascript SDK. As I create a queue message, I can return it with the azure cli and with curl, but for some reason, the javascript result is undefined for peekMessage or getMessage. The plural versions return empty arrays. The funny thing is that I can see that the "response" part of the callback contains a message in the message-text.
I'm using the latest docker-version on azurite.
Have you stumbled upon this problem? All help is very much appreciated!
The text was updated successfully, but these errors were encountered: