The remote server returned an error: (401) Unauthorized

federico.botto
Posts: 7
Joined: Mon Oct 07, 2013 8:51 am

The remote server returned an error: (401) Unauthorized

Postby federico.botto » Tue Oct 08, 2013 9:28 am

Hi, i created a class to test basic Wurfl Cloud.

I had created the API key, selected two Capabilities, but the response is (401) Unauthorized.

I'm using Framework 2.0 so i had adapted your demo.

The API Key is not the original that i had obtained in Account Settings.

I'm testing it on my local server with internet connection, but not on a online domain.

Thanks in advance.

Code: Select all

using ScientiaMobile.WurflCloud;
using ScientiaMobile.WurflCloud.Config;
CloudClientConfig config = new CloudClientConfig();
        config.ApiKey = "560376:OOOOOOOOOOO1yb4FNaUEXv9esRw";

        CloudClientManager manager = new CloudClientManager();
        ScientiaMobile.WurflCloud.Device.DeviceInfo info = new ScientiaMobile.WurflCloud.Device.DeviceInfo();

        string[] cap = {"wta_voice_call","is_smartphone"};
        info = manager.GetDeviceInfo(context, cap);

        _deviceId = info.Id;
        string serverVer = info.ServerVersion;
        _ServerDate = info.WurflLastUpdate;
        string lib = manager.GetClientVersion();
        _cap1 = info.Capabilities["wta_voice_call"].ToString();
        _cap2 = info.Capabilities["is_smartphone"].ToString();
Last edited by federico.botto on Tue Oct 08, 2013 10:53 am, edited 1 time in total.

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: The remote server returned an error: (401) Unauthorized

Postby kamermans » Tue Oct 08, 2013 9:58 am

It can take up to a few minutes for changes to a WURFL Cloud account to propagate to all servers, is it possible that this could be the issue? Also, make sure the capabilities you selected were actually saved, because this can also be caused by having no capabilities selected.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

federico.botto
Posts: 7
Joined: Mon Oct 07, 2013 8:51 am

Re: The remote server returned an error: (401) Unauthorized

Postby federico.botto » Tue Oct 08, 2013 10:26 am

kamermans wrote:It can take up to a few minutes for changes to a WURFL Cloud account to propagate to all servers, is it possible that this could be the issue? Also, make sure the capabilities you selected were actually saved, because this can also be caused by having no capabilities selected.
Thanks kamermans for your response.

I double checked my capabilities and they were selected and saved.
I tested again but the same 401 error msg, after an hour that configured all things.

Any other issue?

Could be a problem that i'm using Framework 2.0, or this shouldn't be a problem?

The web app is connecting and requesting..

federico.botto
Posts: 7
Joined: Mon Oct 07, 2013 8:51 am

Re: The remote server returned an error: (401) Unauthorized

Postby federico.botto » Wed Oct 09, 2013 9:58 am

Help please!

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: The remote server returned an error: (401) Unauthorized

Postby kamermans » Wed Oct 09, 2013 10:02 am

Help is on the way! :)

Sorry for the delay, I am going to check our load balanacers to see where your traffic is going and what the issue is. Can you tell me what country you are testing the service from (your traffic is geo-routed to a nearby cluster of servers)?
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

federico.botto
Posts: 7
Joined: Mon Oct 07, 2013 8:51 am

Re: The remote server returned an error: (401) Unauthorized

Postby federico.botto » Wed Oct 09, 2013 10:34 am

Thank you!!! Sorry for my re-post!

I'm from Argentina.

Any other thing that can help you, please ask!!

Thanks in advance.

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: The remote server returned an error: (401) Unauthorized

Postby kamermans » Wed Oct 09, 2013 11:07 am

I see no attempts to authenticate against our system from your API key. Can you tell me what IP you are accessing our system from so I can track down your requests? You can PM it to me if you want, for the sake of security. Also, I have tested your API key manually and it seems to be working fine.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 6 guests