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

Authentication Error #4

Open
hrizvi opened this issue Aug 17, 2012 · 3 comments
Open

Authentication Error #4

hrizvi opened this issue Aug 17, 2012 · 3 comments

Comments

@hrizvi
Copy link

hrizvi commented Aug 17, 2012

Hi Tomasz,
Just received your mail, and as you said that mention the issues here so, from Yesterday I have been stuck in this error

"Error: The cloud service is not authorized to send a notification to this URI even though they are authenticated."

as a response to my toast notification although fulfilled the requirements which were mentioned in the documentation please help me on this.

Regards

Syed Haider Abbas Rizvi

@tjanczuk
Copy link
Owner

What is the HTTP status code of the response you are getting? If 401, make sure the credentials are correct (http://msdn.microsoft.com/en-us/library/windows/apps/hh761462.aspx#notification_request_returns__401_unauthorized_).

Also make sure you follow the "troubleshooting" advice at http://msdn.microsoft.com/en-us/library/windows/apps/hh465391.aspx#troubleshooting_toast, in particular the "Check app manifest entries". Toast notifications must be explicitly enabled in the Windows 8 application (although I am not sure if having them disabled would manifest itself with a rejection on send).

@hrizvi
Copy link
Author

hrizvi commented Aug 17, 2012

The status code is coming 200.

SYED HAIDER ABBAS RIZVI

Date: Fri, 17 Aug 2012 09:58:59 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [wns] Authentication Error (#4)

What is the HTTP status code of the response you are getting? If 401, make sure the credentials are correct (http://msdn.microsoft.com/en-us/library/windows/apps/hh761462.aspx#notification_request_returns__401_unauthorized_).

Also make sure you follow the "troubleshooting" advice at http://msdn.microsoft.com/en-us/library/windows/apps/hh465391.aspx#troubleshooting_toast, in particular the "Check app manifest entries". Toast notifications must be explicitly enabled in the Windows 8 application (although I am not sure if having them disabled would manifest itself with a rejection on send).

          —

          Reply to this email directly or view it on GitHub.

@hrizvi
Copy link
Author

hrizvi commented Aug 17, 2012

I just Checked the whole thing my uri is correct , client_id is correct and client_secret is also correct plus I'm getting the access code from the WNS cloud maybe sending parameters of the TextToast01 is becoming the reason of this error, just sending you the code which is as below:

//options includes my client id & secret key
// channel includes URI
wns.sendToastText01(channel,'haider',options,function(error,result) {

    if(error)
    {
        console.error('Error in Sending: '+ resp.statusCode);
         console.log('Error in sending toast :'+ error);
    }
    else
    {
        console.log(result);
        console.log('Toast Send: '+ result);
    }
});

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