Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heartbeat service error code 404 #5

Open
piyushg098 opened this issue Feb 1, 2019 · 3 comments
Open

Heartbeat service error code 404 #5

piyushg098 opened this issue Feb 1, 2019 · 3 comments

Comments

@piyushg098
Copy link

piyushg098 commented Feb 1, 2019

I am pretty sure the API URL being formed for pubnub heartbeat service is malformed in some way. This is the URL that the SDK is making:
https://pubsub.pubnub.com/v2/presence/sub-key/sub-c-e6338fda-d90d-11e8-8de9-32e579725a69/channel/%24aws%2Fthings%2Fus-east-1%3A2fe6f560-2496-461e-8a10-178cdfe3cde6%2Fbirde_tv%2Fplayback,%24aws%2Fthings%2Fus-east-1%3A2fe6f560-2496-461e-8a10-178cdfe3cde6%2Fbirde_tv%2Fmessaging,%24aws%2Fthings%2Fus-east-1%3A2fe6f560-2496-461e-8a10-178cdfe3cde6%2Fshadow%2Fupdate,%24aws%2Fthings%2Fus-east-1%3A2fe6f560-2496-461e-8a10-178cdfe3cde6%2Fbirde_tv%2Fdelta/heartbeat?instanceid=ffd0a0ed-0bb7-4aad-a006-b7fc8672ca2b&deviceid=YY00G3432019&pnsdk=PubNub-Roku%2F4.0.0&uuid=02c21341-d248-46a4-8f21-2e615875b421&heartbeat=60&requestid=056e7a81-d053-4f28-bbc8-3694e3ff4424

And I get this in response:
{
"message": "Not found: '/v2/presence/sub-key/sub-c-e6338fda-d90d-11e8-8de9-32e579725a69/channel/$aws/things/us-east-1:2fe6f560-2496-461e-8a10-178cdfe3cde6/birde_tv/playback,$aws/things/us-east-1:2fe6f560-2496-461e-8a10-178cdfe3cde6/birde_tv/messaging,$aws/things/us-east-1:2fe6f560-2496-461e-8a10-178cdfe3cde6/shadow/update,$aws/things/us-east-1:2fe6f560-2496-461e-8a10-178cdfe3cde6/birde_tv/delta/heartbeat'",
"error": 1,
"service": "Presence"
}

Any idea why it is failing?

@parfeon
Copy link
Contributor

parfeon commented Feb 1, 2019

Thanks for contacting us!
I’ve noticed, what channel names contains restricted characters according to this document: https://support.pubnub.com/support/solutions/articles/14000043769-what-are-valid-channel-names-

Please, try to make sure, what your application doesn’t use restricted characters for channel names and give it another try.

Thanks!

@piyushg098
Copy link
Author

We have an underscore in channel name (birde_tv) but in the link, it doesn't say underscore as invalid character. Let me try changing it anyways

@parfeon
Copy link
Contributor

parfeon commented Feb 1, 2019

Mostly I referenced to slashes (/), underscores probably won’t be an issue.

Here is example: $aws/things/us-east-1:2fe6f560-2496-461e-8a10-178cdfe3cde6/birde_tv/playback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants