Back

[SOLVED] integrations problem

  • 0
  • Flutter
Deleted User
19 Jun, 2023, 16:58

Have you added https and /v1 to the client init code?

TL;DR
The user had a problem with integrations but realized it was due to a small mistake in the code. They apologized for wasting time. Another user suggested adding internet permissions, but the problem persisted. The conversation then shifted to browsing the website on a phone and removing the '/v1' at the end of the URL. The user confirmed that browsing without '/v1' worked. The conversation ended with the user considering giving up on the app if there was no solution. Solution: Make sure to include 'https' and '/v1' in the client init code.
Deleted User
19 Jun, 2023, 16:58

For example

TypeScript
 .setEndpoint('https://cloud.appwrite.io/v1') 
Synthia (V)
19 Jun, 2023, 16:59

yep

Synthia (V)
19 Jun, 2023, 16:59
Synthia (V)
19 Jun, 2023, 17:23

I've tried a few more things now, but.. I'm stuck. and if you don't even have a solution, I'll probably have to hang up the app first πŸ˜…

Drake
19 Jun, 2023, 17:26

Can you DM me what you put for the endpoint?

Synthia (V)
19 Jun, 2023, 17:26

sure

Drake
19 Jun, 2023, 17:29

thanks...this seems fine...and the same hostname is shown in the error message?

Synthia (V)
19 Jun, 2023, 17:30

yap

Drake
19 Jun, 2023, 17:30

what device is this running on?

Synthia (V)
19 Jun, 2023, 17:30

On my Phone

Synthia (V)
19 Jun, 2023, 17:31

Android 13

Drake
19 Jun, 2023, 17:31

so on your phone, can you open the browser and browse to the same hostname (using https)?

Synthia (V)
19 Jun, 2023, 17:33

no it is white by both domains

Synthia (V)
19 Jun, 2023, 17:36

Well, maybe that's my mistake, but if I remove the /v1 at the back I can call up the pages, only with the /v1 at the back it doesn't work

Drake
19 Jun, 2023, 17:37

ya just browse to the hostname without the /v1.

So, on your phone, you can browse to the page?

Synthia (V)
19 Jun, 2023, 17:37

ya sry i can browse them on my phone

Drake
19 Jun, 2023, 17:39

you're not using setKey in a client app, are you?

Synthia (V)
19 Jun, 2023, 17:41

I use a SetKey, but only to retrieve things like images and stuff, otherwise I don't use one

D5
19 Jun, 2023, 17:48

You should not use it client-sided

Synthia (V)
19 Jun, 2023, 17:49

hmm ok then I'll change that but then I still have the problem because as I said my websites all work or do I just get something wrong <:ASpikaThink:584087705558974494>

Drake
19 Jun, 2023, 17:50

maybe your app is missing some internet permissions

Synthia (V)
19 Jun, 2023, 17:56

ooooh my god... Steven... please delete me xD I looked everywhere and thought at first that it could be because of it but in "all" AndroidManifest.xml the codes were inside only in one not. Thank you and I'm really sorry. That's something so puny.. I didn't notice it myself, I hope you can forgive me for wasting your time so much...

Synthia (V)
19 Jun, 2023, 17:56

<:shiroGomen:362263232821460992>

Synthia (V)
19 Jun, 2023, 18:02

[SOLVED] integrations problem

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more