Getting EstimoteDeviceException: 403 Forbidden

Hi,

When clicking CHANGE BEACON’S MINOR DEMO and selecting a beacon and in CharacteristicsDemoActivity when trying to create a ConnectionCallBack for the selected beacon it gives an error stating,

com.estimote.sdk.exception.EstimoteDeviceException: 403 Forbidden

The error log is:

com.estimote.sdk.exception.EstimoteDeviceException: 403 Forbidden
at com.estimote.sdk.connection.BeaconConnection$1.failure(BeaconConnection.java:189)
at com.estimote.sdk.cloud.internal.InternalEstimoteCloud$5.failure(InternalEstimoteCloud.java:257)
at com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.CallbackRunnable$2.run(CallbackRunnable.java:53)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: com.estimote.sdk.exception.EstimoteServerException: 403 Forbidden
... 10 more
Caused by: com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.RetrofitError: 403 Forbidden
at com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:387)
at com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.RestAdapter$RestHandler.access$000(RestAdapter.java:219)
at com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.RestAdapter$RestHandler$1.obtainResponse(RestAdapter.java:277)
at com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.CallbackRunnable.run(CallbackRunnable.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at com.estimote.sdk.repackaged.retrofit_v1_9_0.retrofit.Platform$Android$2$1.run(Platform.java:137)
at java.lang.Thread.run(Thread.java:818)

What can I do here?
Thanks.

403 Forbidden means that you have no authorisation to connect to the beacon.

In case of Demos app, in the UI there should be written that you might forgot to set your appId and appToken in DemoApplication class.

@wiktor:
Thanks for the reply.

Actually I have added an app in the cloud and specified that in the app too.

@wiktor:
Had to create an app several times and finally connected to the cloud. Thanks for the help.

I understand that it still does not work.

Can you
1/ provide your Estimote Cloud login? You can send me it privately if you want (wiktor at estimote dot com).
2/ what is MAC address of the beacon? You can also find it by using Estimote app from Play Store.

@wiktor:

It connected with a newly created app. I think it’s fine, isn’t it?

Yup. That’s very fine. Splendid :slight_smile:

1 Like