Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

IoT Hub gives Rejected feedback after calling CompleteAsync()

$
0
0

I'm writing some example code to run on a Raspberry Pi (under Mono running on Raspbian) and communicate with an IoT Hub. I'm using DeviceExplorer to monitor the hub and send messages. I'm using HTTPS transport, as I had trouble with AMQPS.

This is my current receive messages code:


public async void ReceiveMessages()
{
    var pollRate = 180;

    for (;;)
    {
        Message m = await _deviceClient.ReceiveAsync();

        if( m==null)
        {
            _logger.LogDebug(string.Format(@"No message recieved so sleep for {0} seconds", pollRate));
            Thread.Sleep(pollRate*1000);
         }
         else
         {
             var contents = Encoding.UTF8.GetString(m.GetBytes());

             _logger.LogInfo(string.Format(@"Received message contents {0} {1} {2} {3} {4} {5} {6} {7}", contents, m.EnqueuedTimeUtc, m.ExpiryTimeUtc, m.LockToken, m.MessageId, m.SequenceNumber, m.To, m.UserId));

             /*await*/                _deviceClient.CompleteAsync(m);
             //_deviceClient.RejectAsync(m);
         }
    }
}

According to DeviceExplorer the messages are being marked as Rejected:

Started monitoring feedback for device rjwpi.
Sent to Device ID: [rjwpi], Message:"{"msg":"hello7"}", message Id: d15454ac-defa-49b1-af4f-623bc1b5f1bc
Message Feedback status: "Rejected", Description: "Message rejected", Original Message Id: d15454ac-defa-49b1-af4f-623bc1b5f1bc
Has anybody else seen this behaviour?




502 Bad Gateway Responses from Azure Service Bus Relay every now and then..

$
0
0

Hey Guys,

I'm currently trying to set up a REST webservice using the Azure Service Bus Relay and an WebHttpRelayBinding. In general it is working fine, most of the time the requests are forwarded to my local endpoint by the Service Bus Relay. Though every now and then I recieve a 502 Bad Gateway from the Service Bus Relay. Those errors occur more often during load testing (about 25% of 200 simultaneous requests do fail).

The errors doesn't really give a lot of information, as they are looking like this..

<Error><Code>502</Code><Detail>Bad Gateway. TrackingId:fe7108cd-5565-40a5-b357-dd78b3b2453c_G48,TimeStamp:10/8/2015 7:50:35 AM</Detail></Error>
<Error><Code>502</Code><Detail>Bad Gateway. TrackingId:f842c6b9-a38a-416a-b6aa-fcf8e262b1d8_G61,TimeStamp:10/8/2015 7:50:36 AM</Detail></Error>

I'm currently using https as scheme and when switching to http the failed requests occur somewhat less often but are still present. Furthermore i'm doing this in a cooperate network (proxy & firewall).

Has anyone got an idea on this or are there any suggestions on what i can try next to investigate and fix this problems?

Thanks in advance,

  Frederic

BasicHttpRelayBinding giving No connection could be made because the target machine actively refused it

$
0
0

I have created a server using WCF and BasicHttpRelayBinding using the following address:

HttpsRelayAddress = ServiceBusEnvironment.CreateServiceUri("https", "mynamespace", "myservice name"");

One of the reasons for using Azure relay is so you can go through firewalls etc.  I have this server working fine at home but when I am in the office I am getting the following error when doing host.Open(): No connection could be made because the target machine actively refused it

Now I am assuming the the corporate firewall might be blocking it or something.  I don't understand though because I have programs like Evernote that are calling out on port 443 and I can see that in Fiddler.  When I watch in Fiddler and start my program up I see nothing.  Does that mean it is not even getting out of my machine and it is not an external firewall that is stopping it?

I know it is trying to use port 443 because to start with it was complaining about the port being used and I had to turn off an option in VMware that was using it.

Any ideas please?  Is it possible that some types of network calls go through a firewall on 443 and some don't?

Receiving msg from Dead Letter queue through WCF NetMessagingBinding

$
0
0

Is it possible to use WCF/NetMessagingBinding to receive messages from the Dead Letter Queue... those messages were initially posted to the corresponding (non DL) queue using WCF/NetMessagingBinding Client.

Thanks to answer if you know :-)

Changed on-prem SB Database names

$
0
0

Hello,

We are using Service Bus for Windows Server 1.1. The configuration wizard allows the name of the message container database names to be configured. Is there a way to configure/update (post installation) the DB names - SbGatewayDatabase and SbManagementDB?

Regards,

Shilpa 

Can one event processor host consume data when others was blocked?

$
0
0

In our Project, we use two EventProcessorHost (different host name, same consumer group: hostA and hostB) to consume data from an EventHub, we send 100 messages(message 1 ~ message 100) to the hub, below is our processor code:

publicasyncTask ProcessEventsAsync(PartitionContext context, IEnumerable<EventData> events)

       {

           foreach (var eventData in events)

           {

               //handle the event data

           }

           await context.CheckpointAsync();

       }
now we run two host to consume data, at first, only hostA can got data (message1, 2, 3, …),but when hostA got message50, then we got the
ReceiverDisconnectedException,then hostA cannot got data any more.

Then hostB start to consume data, but it not start with message50, it start with message40, it also can get message40-message50 which were got by hostA. We already call check point for each message when we got the message. If we close the HostB, the hostA also not got the message yet. If we run another host, host will got the data which was not consumed.

So how to make the HostB got data start with message50 when hostA got theReceiverDisconnectedException?

Service Bus Queues - message size limit ?

$
0
0

Hi there, 

Is there a messages size limit on Service Bus Queues please ?


God bless you all :)

Problem changing SQL connection strings for SB for Windows 1.1

$
0
0

I've followed the instructions here: https://msdn.microsoft.com/en-us/library/dn441408.aspx#BMK_SBConfig66

Most things seem to update, but the next to last statement "Update-SBHost" does not seem to be taking effect, at least when I do Get-SBFarm it does NOT show my updated SBFarmDBConnectionString.
I'm able to change the gateways connection string, and the three message container 
connection strings, but the SBFarmDBConnectionString refuses to change with the update-sbhost command (it indicates no problems executing that cmdlet though).
I tried doing a Restore-SBFarm, and it said 
Cannot validate argument on parameter 'SBFarmDBConnectionString'. The database (SbManagementDB) located at SQL Server (rsbasqldev.nov.com) is already configured.

Is something busted in the process to change connection strings (moving to a different SQL server), or is the Get-SBFarm command just broken?  I've restarted the server twice to see if it was
"cached" somehow and just telling me the wrong thing, but it still shows the old connection string.

Has anyone experienced this problem?

Is there any way to tell if its actually using the new SbManagementDB?



Bert Jackson


EventHub and QPID Proton example failed!

$
0
0

Hi All,

I've follow the article "Get Started with Event Hubs"(from Azure site) to install QPID and build the example code.

Sender(proton c version) keeps send out message but my Receiver(c# version) can not receive any message.

I the mean time, I launch C# version Sender, the Receiver receives message from it.

Anything wrong?

I wonder if I set address variable correct or not? 

--> char * address = (char *) "amqps://SendRule:oMIp0gKe9yTQqlleZ2GYXw5GI6%2F35qX%2BVrbztPVISqo%3D@miceventhub-ns.servicebus.windows.net/miceventhub";

Best Regards,

mitacyy

Removing Messages by MessageID without consuming it

$
0
0

I have set up a master/slave scenario across multiple regions to handle failure of a region dropping.

I am currently publishing to all queues in all regions,  The clients are consuming from the master and when that message is marked complete I want to reach in and mark it as complete in all of the slaves.

I have not been able to find a way to do this without receiving messages from the slave and then marking them complete. This is inefficient.

Is there a way to either set the TTL on the message to 0, or ask for it to be removed based on the message id not the Sequence number, without having to grab it from the queue?

Session aware Subscriptions - receive messages using Node SDK

$
0
0

Using the receiveSubscriptionMessage in Node.js SDK, in a session enabled subscription, does it lock the session messages so it doesn't get picked up by other workers?

Is there another way i'm missing?

How will I get to know when a message was posted on the service bus topic?

$
0
0

Hi,

I have a service bus topic and I want to know when the message was posted on the topic. We might take time to de-queue the message and process it.

We need this information for tracking purpose, consider a scenario when client has posted a message and for some reason we failed to process the message. We want to know that it was actually posted.

Thanks,

Rohit

Service Bus Queue message count is 35020 when reading it's null

$
0
0

From Murali Sarala  @SaralaMuralivia Twitter

 

@AzureSupport I see service bus queue message count as 35020 when I try to read the messages get nullpic.twitter.com/J2FuWHLgi2

https://twitter.com/SaralaMurali/status/659300992605884416

Can we apply message security to REST web service ?

$
0
0

Hello,

I am interested to know weather message security can be applied to REST web service in the Azure cloud environment.

If yes, please tell me how to implement a class method to handle an encrypted text ?

because if we send an encrypted text to a REST service class method then the web service crashes.

Can you tell me the reason behind the crash?

Thanks in advance

When will Service Bus have DNXCORE50 Support

$
0
0

With the release of the new ASPNET5 DNXCORE50 platform just around the corner, when will we see support for Service Bus using CoreCLR?

I would really like to use it for a new project that I am busy developing, and currently I have to fall back to Azure Storage Queues (which already have beta support for this platform) because Service Bus is simply not available. This includes AMQP Lite and SB.NET.

Regards,

Stephan


Regards, Stephan Johnson Blue Marble Software (Pty) Ltd. stephanj@bluemarble.co.za


Possible to re-use Shared Access Key for Event Hub policy?

$
0
0

Just as the title says, is it possible to create a new Event Hub and instead of being forced to generate new keys, use a current key for the policy. 

Currently in Event Hubs, there is no way to scale partitions and the Event Hub must be deleted and re-created. The app now needs a new shared access key to be able to send to the new Event Hub. In my research and trials, I have not found a way to set the secondary or primary key to an existing key if the need arises to scale Event Hub partitions. It would be great to be able to set this key so that the app would not need to frequently query a database.

how to get telemetry data from Azure Service Bus

$
0
0

From@EartBirdh via Twitter

 

Hi, I am working on integration of our product into Azure. We need to be able to pull telemetry data from Azure. For example we pull data from AWS via SQS and CloudTrail. It looks like the Service Bus queueing is equivalent to SQS, but I cant seem to fine the CloudTrail part. How can I get Azure to log into the service bus? How do I get Azure to log into the Service Bus, like CloudTrail does with SQS?

 

Thanks,

@AzureSupport

Azure Event Hub - Multiple Consumers

$
0
0

I would like to have the Multiple consumers for a partition, I heard that with Consumer group it is possible. But I would like to have some thing different from what Event Hub provides. Let me know if its possible.

For example, I have a Partition P1 and I have Consumers such as C1, C2, C3. I would like to have either one of the consumer C1 or C2 or C3 should be consuming the messages. Not all consumers should be active, only one should be active.

Is there any way to achieve this in Event Hub(without explicit implementation of active/passive mode)?

IoT Hub REST API Error Message

Azure IoT Hub Python SDK

$
0
0

Hello

Are there plans for a Python SDK for Azure IoT Hub?

Dieter

Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>