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

Not able to listen on Azure EventHostProcessor

$
0
0

Hi Team,

Struggling with an issue regarding Azure EventHostProcessor.

Event Processor unable to create partitions when the account connection string is given(accountname and accountkey)as 

1. Without encoding taken key from my storage account and given as below

String storageConnectionString =

"DefaultEndpointsProtocol=https;AccountName=<azure_storage_account_name>;AccountKey=<account_key>"

Here the key contains '/' character

I am getting the error as

 java.security.InvalidKeyException: Storage Key is not a valid base64 encoded string. Storage Key is not a valid base64 encoded string.
java.security.InvalidKeyException: Storage Key is not a valid base64 encoded string.

2. And so I encoded the string to base64 and given as 

String storageConnectionString =

"DefaultEndpointsProtocol=https;AccountName=<azure_storage_account_name>;AccountKey=".concat(Base64.getEncoder().encodeToString(<account_key>).getBytes()));

But now the error I am getting is 

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.(403 - Access denied)

The branch code that I have taken from for ephprocessor is 'https://github.com/Azure/azure-event-hubs/tree/master/java/azure-eventhubs-eph'

Not but the least my actual task is to send the device messages on to service bus which I have to do on EventProcessor class 'onEvent' method.But was stuck with the above errors.

Please do needed support on this or pls guide me for appropriate contact.






Viewing all articles
Browse latest Browse all 1916

Trending Articles



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