Forum Discussion

Re: Looking for simplest example to access quickbase using python

Hi Austin,

I changed the code to the table_id and ran the script. Still i have the following error. Can you please help?

>>> qbc.doquery(qid=1,database='bp7ejv2ma');

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/anaconda3/lib/python3.7/site-packages/pyqb/__init__.py", line 150, in doquery

    res = self.__request('DoQuery', database, req)

  File "/anaconda3/lib/python3.7/site-packages/pyqb/__init__.py", line 112, in __request

    raise ResponseError('Received err #{0} : {1}'.format(errcode, errtext))

pyqb.ResponseError: Received err #83 : Invalid error code: 83



------------------------------
Pushpakumar Gnana
------------------------------

2 Replies

  • AustinK's avatar
    AustinK
    Qrew Commander
    If for some reason the library above is failing there is also the example at the bottom of this post on how to do this with Requests. It is a little more involved but the example file should have everything you need.

    What Python version are you using for this? Looking at pyqb it has some potential issues with newer Pythons but not much is documented. I am testing it again myself and running into some issues using the newest Python. It worked fine for me before. I will let you know if I find anything out.

    So far I have tried to authenticate via username and password, user token, and app token. None of them seemed to work but I may be missing something easy here.
  • AustinK's avatar
    AustinK
    Qrew Commander
    I have figured out part of the issue, on my end anyway. I was using http rather than https, that was all that stopped me from connecting with the authenticate command. 

    After connecting I am still have some small issues running doquery. I am unsure if this is an issue with my current realm or what but I will try and check into it later.