Hi support team.
I have 2 tables named “Clients” and “Services”.
2 tables are connected via Link field each other.
When I create a new row via api, sometimes, I get 500 internal server error.
Here is an error log below.
It says “field_4886” has no field, BUT!! I have field_4886 field named “Services” in the Clients table.
I am not able to create new rows correctly by this kind of error.
Meaning, I can not trust the data correction.
This is a really super ultra-critical problem.
Please help me.
Thanks.
[BACKEND][2024-02-27 21:15:19] 49.13.137.191:0 - "POST /api/database/rows/table/524/?user_field_names=true HTTP/1.1" 200
[BACKEND][2024-02-27 21:15:19] 407|2024-02-27 21:15:19.379|ERROR|baserow.core.formula.exceptions:formula_exception_handler:24 - Formula related error occurred: Table521Model_field_4886 has no field named 'None'. Please send this error to the baserow developers at https://baserow.io/contact.
[BACKEND][2024-02-27 21:15:19] 407|2024-02-27 21:15:19.393|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace=96 action_type=delete_row user=2
[BACKEND][2024-02-27 21:15:19] 407|2024-02-27 21:15:19.379|ERROR|baserow.core.formula.exceptions:formula_exception_handler:28 - Table521Model_field_4886 has no field named 'None'
I had similar problem yesterday , so I deleted Lookup fields from tables and retried, so it worked.
I need to use Link fields absolutely, of course I need Lookup fields.
But if I add Link and Lookup fields, then get tons of errors immediately when I create new rows via api.
I am confused and spending a lot of time with this kind of issue.
Here is another error. But all fields exist correctly.
[BACKEND][2024-02-27 21:28:10] django.core.exceptions.FieldDoesNotExist: Table521Model_field_4885 has no field named 'None'
[BACKEND][2024-02-27 21:28:10] ERROR 2024-02-27 21:28:10,441 django.request.log_response:241- Internal Server Error: /api/database/rows/table/523/53401/
[BACKEND][2024-02-27 21:28:10] Traceback (most recent call last):
[BACKEND][2024-02-27 21:28:10] File "/baserow/venv/lib/python3.9/site-packages/django/db/models/options.py", line 669, in get_field
[BACKEND][2024-02-27 21:28:10] return self.fields_map[field_name]
[BACKEND][2024-02-27 21:34:46] 407|2024-02-27 21:34:46.274|ERROR|baserow.core.formula.exceptions:formula_exception_handler:24 - Formula related error occurred: Cannot resolve keyword 'field_4902' into field. Join on 'not_trashed_field_4884' not permitted.. Please send this error to the baserow developers at https://baserow.io/contact.
[BACKEND][2024-02-27 21:34:46] 407|2024-02-27 21:34:46.274|ERROR|baserow.core.formula.exceptions:formula_exception_handler:28 - Cannot resolve keyword 'field_4902' into field. Join on 'not_trashed_field_4884' not permitted.
It would be great if you can share as many details of how your database schema looks like. Because you’re self-hosting, we would need to be able to reproduce the problem ourselves in our order to figure out what’s going wrong.
How are you currently self-hosting (Docker, Cloudron, etc?), and which environment variables have you set?
Can you reproduce the problem on https://baserow.io? If so, then we can dive into the exact problem.
Regarding my problem, I saw a post yesterday in baserow community.
A guy said, he had a problem with the link field, so to resolve this problem, he removed all tables and recreated tables and fields from scratch, so finally he got it working.
So, I am trying to recreate tables and fields from scratch like him.
I haven’t created tables and fields from scratch at the beginning.
I have tables with a lot of records in airtable.
I wanted to import them from airtable to baserow, so I imported data using “Import from airtable” option in baserow panel.
But after moving, I realized, the data moved was wrong, so I decided to move data using baserow api and created my script to move data.
Once I built my script, I removed all rows from tables using baserow api, but I just kept tables and structures(fields).
I have exact same tables and fields like airtbale.
After that, I ran my script, but sometimes, I got 500 internal server error, so I googled why. I found the post in baserow community, he said, he has deleted lookup fields , so it worked.
So, I deleted lookup fields from tables like him.
But sometimes, I got another 500 internal server error related to link field. I shared my logs above already.
As I explained above, I have correct fields like airtable, but keep getting errors.
I am confused and not sure how to resolve this problem.
What are the specifications of your server (CPU, RAM, etc)?
Which environment variables have you set? You are welcome to omit the ones that hold passwords.
How many API requests are making?
Does your script use the Baserow API to move the data from Airtable into Baserow?
Do you have more output logs whenever you’re getting the 500 errors? In your previous message, you only added a couple of lines. The more you can share, the better.
Which environment variables have you set? You are welcome to omit the ones that hold passwords.
When I installed with docker, email SMTP was not working, so I ran this with my parameters such as domain, credentials etc.
I am feeling this is public thread, so I am afraid to share my server credential here, right?
Not sure how many. But if there are 5000 records in airtable, I create 5000 jobs with a queue and run it individually.
Does your script use the Baserow API to move the data from Airtable into Baserow?
Yes, my script uses the Baserow API to move the data from Airtable to Baserow.
Do you have more output logs whenever you’re getting 500 errors? In your previous message, you only added a couple of lines. The more you can share, the better.
Not sure how to check logs entirely, but I can’t see errors right now.
Please guide me on how to copy entire logs.
But as I told you above, all tables and fields were imported from Airtable. After imported, I just removed all rows from tables.
So all tables, fields and structures are very correct.
Sometimes you might see action_type=delete_row error in my logs, but please ignore those because I ran delete rows api as well.
Hi,
I have Country table in airtable and it has 192 records.
So, I created Country table and fields fresh from scratch in baserow like airtable, and I tried to move all of them to baserow using baserow api.
BUT!!!
Only 189 rows were moved, so I traced an error. Meaning, baserow api can’t handle even 192 records.
This makes me crazy. Please help me asap.
[BACKEND][2024-02-28 15:02:06] 407|2024-02-28 15:02:06.673|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace=96 action_type=create_row user=2
[BACKEND][2024-02-28 15:02:06] 407|2024-02-28 15:02:06.694|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace=96 action_type=create_row user=2
[BACKEND][2024-02-28 15:02:06] ERROR 2024-02-28 15:02:06,691 django.request.log_response:241- Internal Server Error: /api/database/rows/table/533/
[BACKEND][2024-02-28 15:02:06] Traceback (most recent call last):
[BACKEND][2024-02-28 15:02:06] File "/baserow/venv/lib/python3.9/site-packages/django/db/models/options.py", line 669, in get_field
[BACKEND][2024-02-28 15:02:06] return self.fields_map[field_name]
[BACKEND][2024-02-28 15:02:06] KeyError: None
[BACKEND][2024-02-28 15:02:06]
[BACKEND][2024-02-28 15:02:06] During handling of the above exception, another exception occurred:
[BACKEND][2024-02-28 15:02:06]
[BACKEND][2024-02-28 15:02:06] Traceback (most recent call last):
[BACKEND][2024-02-28 15:02:06] File "/baserow/venv/lib/python3.9/site-packages/asgiref/sync.py", line 486, in thread_handler
[BACKEND][2024-02-28 15:02:06] raise exc_info[1]
[BACKEND][2024-02-28 15:02:06] File "/baserow/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 43, in inner
[BACKEND][2024-02-28 15:02:06] response = await get_response(request)
[BACKEND][2024-02-28 15:02:06] File "/baserow/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
[BACKEND][2024-02-28 15:02:06] response = await wrapped_callback(
[BACKEND][2024-02-28 15:02:06] File "/baserow/venv/lib/python3.9/site-packages/asgiref/sync.py", line 448, in __call__
[BACKEND][2024-02-28 15:02:06] ret = await asyncio.wait_for(future, timeout=None)
[BACKEND][2024-02-28 15:02:06] File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
[BACKEND][2024-02-28 15:02:06] return await fut
[BACKEND][2024-02-28 15:02:06] File "/baserow/venv/lib/python3.9/site-packages/asgiref/current_thread_executor.py", line 22, in run
[BACKEND][2024-02-28 15:02:06] result = self.fn(*self.args, **self.kwargs)
I deleted all rows from Country table in baserow, and retried to import using baserow api.
Airtable has 192 records in Country table so now 191 rows were moved and 1 row with 500 error.
Please help me, this is urgent and super super ULTRA CRITICAL problem for me.
Thanks.
[BACKEND][2024-02-28 15:52:06] 49.13.137.191:0 - "POST /api/database/rows/table/533/?user_field_names=true HTTP/1.1" 200
[BACKEND][2024-02-28 15:52:06] 405|2024-02-28 15:52:06.077|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace=96 action_type=create_row user=2
[BACKEND][2024-02-28 15:52:06] 406|2024-02-28 15:52:06.079|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace=96 action_type=create_row user=2
[BACKEND][2024-02-28 15:52:06] 406|2024-02-28 15:52:06.083|INFO|baserow.core.action.signals:log_action_receiver:28 - do: workspace=96 action_type=create_row user=2
[BACKEND][2024-02-28 15:52:06] ERROR 2024-02-28 15:52:06,090 django.request.log_response:241- Internal Server Error: /api/database/rows/table/533/
[BACKEND][2024-02-28 15:52:06] Traceback (most recent call last):
[BACKEND][2024-02-28 15:52:06] File "/baserow/venv/lib/python3.9/site-packages/django/db/models/options.py", line 669, in get_field
[BACKEND][2024-02-28 15:52:06] return self.fields_map[field_name]
[BACKEND][2024-02-28 15:52:06] KeyError: None
[BACKEND][2024-02-28 15:52:06]
[BACKEND][2024-02-28 15:52:06] During handling of the above exception, another exception occurred:
[BACKEND][2024-02-28 15:52:06]
[BACKEND][2024-02-28 15:52:06] Traceback (most recent call last):
[BACKEND][2024-02-28 15:52:06] File "/baserow/venv/lib/python3.9/site-packages/asgiref/sync.py", line 486, in thread_handler
[BACKEND][2024-02-28 15:52:06] raise exc_info[1]
[BACKEND][2024-02-28 15:52:06] File "/baserow/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 43, in inner
[BACKEND][2024-02-28 15:52:06] response = await get_response(request)
[BACKEND][2024-02-28 15:52:06] File "/baserow/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
[BACKEND][2024-02-28 15:52:06] response = await wrapped_callback(
[BACKEND][2024-02-28 15:52:06] File "/baserow/venv/lib/python3.9/site-packages/asgiref/sync.py", line 448, in __call__
[BACKEND][2024-02-28 15:52:06] ret = await asyncio.wait_for(future, timeout=None)
[BACKEND][2024-02-28 15:52:06] File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
[BACKEND][2024-02-28 15:52:06] return await fut