Closed kyletov closed 3 years ago
Does the error appear when attempting to login or after the initial login? Can you provide a code snippet and the full trace?
Hey, I just tried again and seems like I'm not running into that issue anymore, I got the impression that I needed to include data_sources when initializing fmrest.Server like data_sources=[{'database': 'Contacts', 'username': 'admin', 'password': 'admin'}]
(from code docs).
When I removed it, I was able to login using the format below (same as the example from the docs):
>>> fms = fmrest.Server('https://your-server.com',
user='admin',
password='admin',
database='Contacts',
layout='Contacts')
>>> fms.login()
>>> record = fms.get_record(1)
>>> record.name
John Doe
Glad it works now. The data_sources
is in fact only needed if you want to authenticate to additional DBs.
Hello, I'm getting this error when trying to login using the
Server
class:Any help or guidance on this would be great!