Repository navigation
Test Android Application with own parse server #530
Copy link
Copy link
Closed
Description
Activity
I added network interceptor and this is the log:
/ParseLogInterceptor: Type : Request 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Request-Id : 6 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Url : http://10.0.0.12:1337/parse/classes/_User 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Method : POST 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Headers : {X-Parse-OS-Version=5.1, Content-Type=application/json, X-Parse-App-Build-Version=1, X-Parse-Client-Key=ll, X-Parse-Installation-Id=fee1d350-9544-4114-9584-bec74298cfd1, X-Parse-App-Display-Version=1.0, X-Parse-Client-Version=a1.13.0, Content-Length=60, User-Agent=Parse Android SDK 1.13.0 (com.transapp.user.transapp/1) API Level 22, X-Parse-Application-Id=Hkzc66hu0nsO3Q0yUMdh2h3zaa3Pdrtfv3fLRkwZ} 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Body : { 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: "email": "[email protected]", 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: "username": "Ofg", 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: "password": "1234567" 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: } 02-20 17:21:37.996 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: -------------- 02-20 17:21:38.026 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Type : Response 02-20 17:21:38.027 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Request-Id : 6 02-20 17:21:38.027 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Status-Code : 403 02-20 17:21:38.027 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Reason-Phrase : Forbidden 02-20 17:21:38.027 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Headers : {X-Android-Sent-Millis=1455981697999, Access-Control-Allow-Methods=GET,PUT,POST,DELETE,OPTIONS, X-Powered-By=Express, Date=Sat, 20 Feb 2016 15:21:42 GMT, Content-Length=24, X-Android-Response-Source=NETWORK 403, Connection=keep-alive, Access-Control-Allow-Headers=*, X-Android-Received-Millis=1455981698026, Access-Control-Allow-Origin=*} 02-20 17:21:38.027 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: Body : Ignored 02-20 17:21:38.027 2404-11049/com.transapp.user.transapp I/ParseLogInterceptor: --------------Do you have any client keys configured in your ParseServer initialization? (rest api key, client key, javascript key, dot net key)... If you have any set, then all request require a valid match.. I would remove all of them and see if that's why you're getting a 403.
That`s why I get the 403. Thanks! so I there is need to define the keys , its recommended to define all the keys, right?
It's actually recommended to not set any client keys on the server. They don't add any security since they were public.
Metadata
Metadata
Assignees
Labels
No labels
Hi,
I setup parse-server and its working fine with javascript sdk, however I am trying to check it via Android and I dont get any response.
for example this is an output from the console ( android studio )
Any suggestions? why its not working in Android?