#[solved] can't create collection

34 messages · Page 1 of 1 (latest)

pseudo pilot
marsh dune
pseudo pilot
#

Server sdk

finite swift
# pseudo pilot Server sdk

Hello! Could you please share your code or the problematic fragment, so we take a look into what could be failing?

pseudo pilot
#

It is the basic code from GitHub python sdk examples

pseudo pilot
#

databases.create_collection(database_id="658f2efa61",collection_id="",name="Wow")“

placid wing
placid wing
pseudo pilot
placid wing
pseudo pilot
#

yea

#

is there a problem

placid wing
pseudo pilot
#

also in python ?

placid wing
pseudo pilot
#

ok

#

lemme try it

pseudo pilot
#

still error

#

appwrite.exception.AppwriteException: User (role: guests) missing scope (collections.write)

finite swift
#

And remove your endpoint domain if it's not a localhost address

pseudo pilot
#

from appwrite.services.databases import Databases

client = Client()
(client .set_endpoint("https/455/rg")
    .set_project("efsbsf864sefse")) 
databases = Databases(client)
                  

databases.create_collection(database_id="efseff45",collection_id="453534drg",name="WAW")```
marsh dune
marsh dune
finite swift
pseudo pilot
finite swift
#

@pseudo pilotAre you doing this in flutter or in an Appwrite function?

pseudo pilot
#

Function

marsh dune
finite swift
#

True, I thought it was flutter because of the icon in profile 😆

#

The solution should be that, basically adding the API key with valid scopes

pseudo pilot
#

it works now thank you

#

[solved]can't create collection