Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
New Developer
vishal_arote
Posts: 6
Registered: ‎08-24-2009
My Device: Not Specified
Accepted Solution

Access forbidden! Error 403

Hi All,

 

I am working on push service.

I have got my credentials from RIM.Also installed the push sdk successfully.

But when I try to push the data I get the following error.

When using the sample_app. URL

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

pushapi.eval.blackberry.com
Tue May 4 06:03:41 2010
Apache

contentType = text/html; charset=iso-8859-1 )

 

And when I try to use the /debug-portal url the error is

 

Push Result

Push id Code Description
39 2002 The address specified was not in a recognized format or was not valid or unknown (i.e Not subscribed).



Invalid subscribers

Address Reason
24aa7dc5 does not exist

 

 

Although the Address "24aa7dc5" is present in my MySQL database.

 

My IP is a static ip which i have registered with RIM.But when I check my ip using "www.whatismyip.com" i got to know that my connection ip is not the same as the one i registered with rim push services.Is that could be the problem.?

 

Vishal

Please use plain text.
Developer
Bullety
Posts: 138
Registered: ‎08-02-2009
My Device: Z10
My Carrier: T-Mobile

Re: Access forbidden! Error 403

Dear vishal_arote,

 

 


vishal_arote wrote:

My IP is a static ip which i have registered with RIM.But when I check my ip using "www.whatismyip.com" i got to know that my connection ip is not the same as the one i registered with rim push services.Is that could be the problem.?


 

Do you use a "real" server or your home computer with dynamic IP adresses?

 

Your source IP has to be fix and it needs to be always the same (the one you registered with RIM).

 

If you want to test your application locally and not on your server, you could use a proxy server on your server to tunnel the data.

Please use plain text.
Regular Contributor
mdicesare
Posts: 78
Registered: ‎04-28-2010
My Device: BlackBerry 10 Dev Alpha
My Carrier: Rogers

Re: Access forbidden! Error 403

If pushing to the eval system you need to push from a server with the IP you gave RIM.

 

Also, don't push based on your PIN with the SDK - you push based on subscriber id - look at what the subscriber id for that PIN is and push to that instead. The subscriber id will be what you used as a username when you subscribed/registered from the device application.

 

 

Please use plain text.
New Developer
vishal_arote
Posts: 6
Registered: ‎08-24-2009
My Device: Not Specified

Re: Access forbidden! Error 403

Dear Bullety

 


 

Bullety wrote

Do you use a "real" server or your home computer with dynamic IP adresses?

 

Your source IP has to be fix and it needs to be always the same (the one you registered with RIM).

 

If you want to test your application locally and not on your server, you could use a proxy server on your server to tunnel the data.

 


 

The machine am using has  a static ip.And this machine is in my office .And I registered this Static Ip with RIm.But I guess all the requests are going through  the Extenal IP,thats why I am getting the problem of access forbbiden.

I think I made big mistake while registering for the service.

So do I have to again request for Push Credentials with Rim mentioning my External IP as Source IP.

 

Regards

Vishal

 

Please use plain text.
Regular Contributor
mdicesare
Posts: 78
Registered: ‎04-28-2010
My Device: BlackBerry 10 Dev Alpha
My Carrier: Rogers

Re: Access forbidden! Error 403

You don't need to re-register or get new credentials. Just email RIM and ask them to update your IP to the external IP - not a big deal.

Please use plain text.
New Developer
JGao12345678
Posts: 46
Registered: ‎07-05-2010
My Device: 9630
My Carrier: Telus

Re: Access forbidden! Error 403

 I use the static IP that registered at RIM Push Service.

 

I can run client side app to do registeration. But I can not send the push to the device.

 

When I run the https://xxx.yyy.com/sample-app/, I got an error after I click Start General Push button.

 

 

Bad HTTP response returned: HttpResponse ( net.rim.pushsdk.commons.http.HttpResponse@2eba074a statusCode = 403 content = 
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server. 

If you think this is a server error, please contact the webmaster. 

Error 403
pushapi.eval.blackberry.com
Thu Jul 8 14:10:21 2010
Apache 
contentType = text/html; charset=iso-8859-1 )

In the same time, I did  Subscriber query using the Debug Portal, I got good result as:

 

 

Subscriber query results 

Subscriber ID Address Status 
100001 222899d3 ACTIVE 
100002 30b9a536 ACTIVE 

 

But when I did the push using the Debug Portal, I got the error as result:

 

Push Result 

Push id Code Description 
100014 2002 The address specified was not in a recognized format or was not valid or unknown (i.e Not subscribed). 


Invalid subscribers 

Address Reason 
222899d3 does not exist 

 

 

Could you tell me what reason for them?

 

 

 

 

 

Please use plain text.