Companion error [apply-to-args]

Hi! I’m currently using Firebase Auth in my app, and when testing with Companion, I get the error I added. When I remove the Firebase Auth and other Firebase blocks from the pages that generate the error, the test with Companion succeeds. I haven’t been able to resolve this. If someone has experienced this error or knows anything about it, could they please help?

Error image:

Hi,

It’s a known bug and has been added to the Bug Tracker, it will be fixed.

Anyway, does it give you an error just by adding the component, or only when you also add some blocks?

I deleted the blocks and deleted the firebase component as well, then I added the firebase component and it gave an error.

If the error occurs on opening without clicking anything, show me the blocks you have in Screen.Initialize.

Snig In Screen :

Snig Up Screen :

Profile Screen:

I am getting errors on these pages

without clicking anything?

Yes,without clicking anything

Did you add the google-services.json file?

Remember to change the EncryptionKey.

ifValueNotThere(makeAList(“not found”))

The Google-sevis.json file is attached. I created a custom EncryptionKey for myself, and I changed it to SPARK when taking the images so you can see it. For example, I try to type something in the text box, but it freezes right after syncing.

the name must be google-services.json

Yes, the file name is the same, google.services.json. I made the code you said, but I still get the same error, only that page has no errors.

I started getting this error today. This error didn’t occur before, but the same codes were present. Today, I was going to add the password reset, and then this error started occurring. I removed the password reset, but it still persisted.

Can you tell me clearly in which screens you’re getting the apply-to-args error?

Let me explain better, this error should be a very simple one, but the problem is that it’s not clearly stated what exactly causes it, which can make debugging difficult.
Since the error happens even before interacting with the app,
try simply removing the blocks from Screen.Initialize and then adding them back one by one until you figure out which one is causing the issue.

As I said, I am getting this error on the login, registration and profile pages. If you want, I can send you the aia file or I can delete them one by one as you said.

Try it yourself :grin:

I did as you suggested and found a few errors.

Error on the login page:


When I added the call Firebase_Auth.Is Signed In block to the screen.initialize one by one as shown in the picture, an error occurred.

Error on the sign up page:

The error was occurring because one of the procedure blocks said “privacy” and the other said “privacy2”.

Error on the profile page:


An error occurred when adding TinyDb data blocks after visible. How do we resolve these errors?
@RaYzZz

login page

isSignedIn returns true/false,
while you’re connected in Companion, right-click on it, select Do It, and see what error it gives you.


sign up page

Dint’t quite understand, could you explain it a bit better? :grin:


profile page

This way, if the data isn’t present in TinyDB, it won’t throw an error but will display “not found” instead.

Recommended

Also why are you using make list block while storing single value?


Just store it as it is,
Screenshot (19)

It’s a profile page. The only error on the sign-up page was a typo. I didn’t understand what you said on the login page, but I did what you said, but nothing happened.
@RaYzZz