The operation createmarker cannot accept the arguments: , [""], [""]

I am working on an project using ESP32 and Firebase Realtime Database. My app was working fine 3 months ago, but now I am facing an issue.

Problem:
The app is not displaying any values from Firebase (latitude, longitude, etc.).
When I click a button to show location on the map, I get this runtime error:

please assist me to resolve this issue……

What is your ProjectBucket set to in the Designer ?

Which button?

1 Like

Your error clearly says you have not received any value in the global lat and lan variable. Did you check it? Always debug every variables to know the process flow is working flawless

use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

When i open the app, Usually the lattitude and longitude valuewill be fetched from firebase and gets displayed in the text box

Then when i click the show current location button, The value from the latitude and longitude text boxes will be mapped into map co-ordinates and the marker will be displayed in the map.

But now, I am not sure why the latitude and longitude text boxes values are not displayed when i open the app. Since these two text boxes values are not set, When i click the button , It shows this error.

The project bucket in firebaseDB section that i have set is Smart_Jacket

When i open the app, Usually the lattitude and longitude valuewill be fetched from firebase and gets displayed in the text box

Then when i click the show current location button, The value from the latitude and longitude text boxes will be mapped into map co-ordinates and the marker will be displayed in the map.

But now, I am not sure why the latitude and longitude text boxes values are not displayed when i open the app. Since these two text boxes values are not set, When i click the button , It shows this error.

The project bucket in firebaseDB section that i have set is Smart_Jacket

I tried using Do It as well, But i didn’t get any value when i kept the Do It in firebaseDB.

Any help would be highly helpful for me!

Seems that your issue is firebase not returning any data so you need to debug that part of your app.

Check your firebase settings in designer. Is the url still correct?

You could always do some testing using the REST API and Web component

I had a similar problem. I used to leave the Firebase component's project bucket empty (because I use my own database, not the default App Inventor one, which is common in many projects, so it's better for each to have its own bucket).

But now my app wasn't reading anything… until I put a forward slash “/” as the project bucket.