401 Error: API keys are not supported by this API.

Troubleshooting

Hi everyone,

I'm experiencing a common issue where, after adding the "Create Account" action in FlutterFlow, and then creating a new user on the login page, no user document is created in the user collection, and there's no navigation to the next page. However, in my case, I encounter an unusual error message that I haven't seen in the FlutterFlow community or on GitHub before.

Problem:

  • Error Message: "API keys are not supported by this API. Expected OAuth2 access token or other authentication credentials that assert a principal."

  • Details: It appears that the client-server communication is failing.

Steps Taken So Far:

  1. I've already posted about this issue in another community post here https://community.flutterflow.io/ask-the-community/post/authentication-problems-no-site-navigation-no-user-document-written--roRT7khZZwxddn9

  2. Upon further investigation, I discovered that the 401 error message is the root cause, indicating an authentication issue between my FlutterFlow app and Firebase.

What have you tried so far?

As you can see from my other community post, I've already done everything I can think of to fix the problem, but unfortunately it still does not work properly.

There is also this cross origin error message shown in Firebase -> Authentication. I don´t know, whether this could be related to my issue.

At this point, I have the feeling that something is wrong with my google account, as I can no longer log in to Edge with my current Flutterflow credentials, but only in Chrome. It's really strange.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
4 replies