Android-Carbon-Forum icon indicating copy to clipboard operation
Android-Carbon-Forum copied to clipboard

No network?

Open muhv7 opened this issue 8 years ago • 34 comments

Sorry, have to bother you again.

So I've done everything so far, changed the API secrets, changed the domain names etc. Made an API subdomain and binded it to the homepage.

Still getting No network whenever I open the app.

Either Im missing something right now or Im just dumb .

muhv7 avatar Dec 06 '17 09:12 muhv7

tim 20171206172706 You may have missed this.

lincanbin avatar Dec 06 '17 09:12 lincanbin

When you visit the API domain name, have you looked 403?

lincanbin avatar Dec 06 '17 09:12 lincanbin

Hey. Tried with https and without. Either way both show me No network in the app.

403 as in error? The api page itself is currently redirecting fine to the page. (Unless I misunderstood you in the other topic and it should do something else...)

muhv7 avatar Dec 06 '17 09:12 muhv7

  • Your api domain name is resolved and bound to the current server?

tim 20171206174302

  • Do you set the api domain name in Dashboard?

tim 20171206174432 If API works, then open it should be like this.

lincanbin avatar Dec 06 '17 09:12 lincanbin

Yup.. I think Im just stupid and missing something.

Dashboard is set as shown on your picture but at this point I'm just thinking I missed to upload something to the API domain part.

muhv7 avatar Dec 06 '17 09:12 muhv7

You do not need to upload anything.

lincanbin avatar Dec 08 '17 02:12 lincanbin

Yeah. That's the issue. I made an sub domain. CNAME'd it to the forum root, set the API path in dashboard and it's still saying Network error

muhv7 avatar Dec 08 '17 08:12 muhv7

When you open your own api domain name in the browser, saw what?

lincanbin avatar Dec 08 '17 08:12 lincanbin

Index of ... I know you said it should be 403 but for whatever reason that does not show up for me..

muhv7 avatar Dec 08 '17 08:12 muhv7

tim 20171208165501 I think you did not bind the api domain name to vhost.

lincanbin avatar Dec 08 '17 08:12 lincanbin

hello @lincanbin i have done all above things getting 403 error also still getting no network in android app

pratikraman-dev avatar Apr 04 '18 03:04 pratikraman-dev

@pratt1305 The 403 status code appears on behalf of the server configuration is correct, check your client configuration.

lincanbin avatar Apr 04 '18 03:04 lincanbin

Client Configuration Means Android - Side ??

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

@pratt1305 https://github.com/lincanbin/Android-Carbon-Forum/blob/master/app/src/main/java/com/lincanbin/carbonforum/config/APIAddress.java#L15

lincanbin avatar Apr 04 '18 04:04 lincanbin

This Setting Are Done Perfectly image

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

Does your site have HTTPS support? @pratt1305

lincanbin avatar Apr 04 '18 04:04 lincanbin

No

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

tim 20180404122849 @pratt1305

lincanbin avatar Apr 04 '18 04:04 lincanbin

Remove s in https.

lincanbin avatar Apr 04 '18 04:04 lincanbin

Still Same issue after removing S from https://

image

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

把日志发上来

lincanbin avatar Apr 04 '18 04:04 lincanbin

ok

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

Send logs up.

lincanbin avatar Apr 04 '18 04:04 lincanbin

Your api seems to be inaccessible.

lincanbin avatar Apr 04 '18 04:04 lincanbin

image

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

How Can We test those api's are working or not ?? Please point me in some direction so i go through it

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

Where is path to api in Carbon PHP server i think its coming from view/api

pratikraman-dev avatar Apr 04 '18 04:04 pratikraman-dev

403 means working.

lincanbin avatar Apr 04 '18 05:04 lincanbin

alright !! then exactly where can i be going wrong ??

pratikraman-dev avatar Apr 04 '18 05:04 pratikraman-dev

From the log, your API returns an empty string to the client.

lincanbin avatar Apr 04 '18 05:04 lincanbin