Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1363 Weergaven

i have enterprise account and i want to use API External , when i use it on the Test Enviroment ,it said access Denied .

here is my python script :
import xmlrpc.client
url = 'https://mylink.dev.odoo.com'
db = 'mylink.dev'
username = 'akram.mokhtar@raiftextile.com'

password = 'my api key'
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})
try :    if uid:        print("authentication success")    else:        print("authentication failed")
except Exception as e:    print(f"Error during authentication: {e}")
 
can i know why it said authentication failed ,and how to fix it?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
feb. 24
3115
1
mei 23
2520
1
feb. 24
2117
0
jan. 24
1519
0
aug. 24
1918