-
Notifications
You must be signed in to change notification settings - Fork 30
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
On multiple requests: TypeError: sequence item 1: expected str instance, MetaField found
#108
Comments
It should have to save. It seems this problem is from Firestore. Try to save it using firestore native lib. And other possible problem is in your data |
I am also currently stuck due to this error. Were you able to find any fixes OP? |
It happens in what appears to seem randomly and in some code paths it
always happens. Unfortunately I didn’t isolate the issue nor found a
solution.
On Sun, 27 Jun 2021 at 06:26, IshuSingh1 ***@***.***> wrote:
I am also currently stuck due to this error. Were you able to find any
fixes OP?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#108 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFLFZISYFYG7J7A5HB5USDTU2SARANCNFSM43GIOEZQ>
.
--
Sent from mobile
|
Please show off your data which you are trying to Below example is working fine for me. Even I try it multiple time. from fireo import fields
from fireo.models import Model
from datetime import datetime
class Log(Model):
id = fields.IDField
time = fields.DateTime()
component = fields.TextField()
message = fields.TextField()
payload = fields.TextField()
payload_json = fields.MapField()
level = fields.TextField()
class Meta:
collection_name = "logs"
payload_json = {'name': 'json_payload'}
log = Log(
time=datetime.now(),
level='debug',
component=str('component'),
message=str('message'),
payload=str('payload'),
payload_json=payload_json,
).save()
print(log.key) |
This is the method I created to add a document
FYI I am using native firebase_admin. But the error I am getting is the same error mentioned by OP. |
it seems problem is in Please try to print data. before saving
|
The first time I run the following code, it runs ok. The second time I run it without restarting the program, I get this error.
This happens both in debug mode and in production.
The text was updated successfully, but these errors were encountered: