Welcome! Log In Create A New Profile

Advanced

[WX22] WinDev - restResponse - and FireBase Project -

Posted by James Smiths 
[WX22] WinDev - restResponse - and FireBase Project -
March 20, 2021 08:44PM
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)
The message indicates that you cannot connect to the server you are trying to reach (time out error).

So, as your code didn"t change, either the server changed (different IP, etc), the server is dead and is not responding, or achange in enrinment is preventing the contact (change in firewall rules, windows update, etc)

Now, I don't know if the server name in ytour message is the real one, but [firebaseio.com] in my browser is returning é "firebaseio.com’s server IP address could not be found."

So if the server name is correct, it looks like somebody forgot to pay for the domain name renewal
Re: [WX22] WinDev - restResponse - and FireBase Project -
March 21, 2021 03:06PM
Thank you Argus for your answer.

I remember that my cliente mention that friday the computers were updating the windows 10 so I will check what you suggest.

Thank you.

James
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: