Hi All,
I have this code working since 2019 in a firebase project to upload data so almost 10 users can access it from an WM android App
It stop to work since last monday 15 without any reason sending the error in the image attached.
// BLOCK TO UPLOAD DATA
stMyClient is Variant
for each column in TABLE_mytable
stMyClient.field1 = TABLE_mytable.COL_mycolumn1
stMyClient.field2 = TABLE_mytable.COL_mycolumn2
stMyClient.field3 = TABLE_mytable.COL_mycolumn3
req is httpRequest
req..Method = httpPatch
req..URL = "[
myproject.firebaseio.com] TABLE_mytable.COL_mycolumn1 + "/" + TABLE_mytable.COL_mycolumn2 + "/.json?auth=myserversecret"
req..ContentType = "application/json"
req..Content = VariantToJSON(stMyClient)
HTTPresponse is httpResponse = HTTPSend(req)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
END
end
// END OF BLOCK TO UPLOAD DATA
I sent an email to firebase support but they ask me to check the db rules or the strcuture of the data.
I told then the same, I am using this code since january 2019, and nothing has change since then.
I also send them this small example and it sends the same error
//********************************
Person is Variant
Person.LastName = "MOORE"
Person.FirstName = "Vince"
FOR nSubscript = 1 TO 20
req is httpRequest
req..Method = httpPatch
req..URL = "[
myproject.firebaseio.com] TABLE_mytable.COL_mycolumn1 + "/" + nSubscript + "/.json?auth=myserversecret"
req..ContentType = "application/json"
req..Content = VariantToJSON(Person)
HTTPresponse is httpResponse = HTTPSend(req)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
//Info(HTTPresponse..StatusCode)
ELSE
//Info(HTTPresponse..StatusCode)
END
END
//********************************
I told them that maybe some change was introduced in firebase but I have not found nothing in the documentation.
Can anyone give some idea of what could happen.
Thank you very much
James Smiths
Attachments:
open |
download -
firebase problem.png
(41.7 KB)