Discussions

Expand all | Collapse all

Apptoken gives error 22 ""sign-in required"" for some tables, not for others

  • 1.  Apptoken gives error 22 ""sign-in required"" for some tables, not for others

    Posted 08-09-2017 23:25

    When using the QuickBase Ruby client and do the following (information obscured by asterisks):


    qbc = QuickBase::Client.init("org" => '****', "apptoken" => '*****')


    and do:


    db_id = '****' # dbid of a table

    qbc.getSchema(db_id)


    I get the error:


    Error code: 22 text: Sign-in required: detail: The page you have requested can be viewed only by users who have signed in. Please sign in to proceed.

    If I change the db_id to a  dbid of a specific other table in the same app, I get back a valid schema.

    What is going on?


    Thanks,

    --Allan


  • 2.  RE: Apptoken gives error 22 ""sign-in required"" for some tables, not for others

    Posted 08-09-2017 23:31
    Maybe you need to use a usertoken to do the authentication.

    https://help.quickbase.com/api-guide/...


  • 3.  RE: Apptoken gives error 22 ""sign-in required"" for some tables, not for others

    Posted 08-10-2017 00:06
    Allan
    It's possible that one table is open to anyone on the internet and the second table is not.  Have you tried using the URL form to see if you can access both tables using the login you are sending?  
    Neil


  • 4.  RE: Apptoken gives error 22 ""sign-in required"" for some tables, not for others

    Posted 08-10-2017 03:58
    Dear Neil: thank you so much for responding!
    That is indeed an explanation. I found this reference: https://community.quickbase.com/quickbase/topics/i-am-trying-to-make-one-form-in-a-table-public-and-...

    Though, eventually I arrived at authenticating using the QuickBase Client authenticate method.

    Many thanks indeed!
    --Allan


  • 5.  RE: Apptoken gives error 22 ""sign-in required"" for some tables, not for others

    Posted 08-10-2017 14:19
    Awesome - you are welcome