-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid UTF8 string when querying /item-storage/items #3
Comments
Which version of LDLite is this happening with? Also which operating system? |
I'm on Windows 10. LDLite version 0.0.33 according to my env.
|
If you would, please upgrade to LDLite |
As an aside, one workaround to prevent the script from stopping on that error would be to catch BaseException. So instead of:
Try:
|
I upgraded to the latest version, 0.0.35 and changed to the suggested BaseException in the script. I am getting different errors now and not able to connect to our tenant. I have restarted my computer but still getting the same connection problem. |
|
Also could it be that |
I used our api url in actually running the script (which was the same as in the first one posted). I'll talk to hosting and see what they have to say. |
Are you able to connect to that first path, The other two examples, |
For I am having trouble getting to the other paths in my Folio tenant. I think that a permission needs to be added to the Reports User we created for reporting. I tried to get to |
On
with
On |
I replaced the code for the db as suggested (keeping the BaseException from earlier) and it was successful! Tables were created! I am working with our Systems Librarian to get the permissions updated. |
If the SQLite support works well, we can remove the "experimental" caveat. The only downside I see of using SQLite is that it does not support schema namespaces and so the table names will not be compatible with Metadb naming. This means if you want to run one of the community-created queries, the table names in the query have to be changed. |
Python 3.10.6
In querying /item-storage/items, I am receiving this error output while using LDLite to get the data from my institutions Folio tenent (see attachment). I am using the sample script from the ldlite git hub to get the data and create the tables: https://github.com/library-data-platform/ldlite/blob/main/examples/folio_demo.py.
I haven't been able to get the item records or anything else after that point in the script. I have tried breaking up the queries and table creation parts into multiple cell in my Jupyter notebook and have managed to get some of the tables created but it stalls out on items (see attachment).
item-storage_items_errorOutput.txt
Test_LDLite2_script.pdf
The text was updated successfully, but these errors were encountered: