Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown error compiling custom code. (Authentication and Custom Actions) #2152

Closed
3 tasks done
nev-21 opened this issue Jan 12, 2024 · 11 comments
Closed
3 tasks done
Assignees
Labels
Bug closed: fixed type: bug Something isn't working.

Comments

@nev-21
Copy link

nev-21 commented Jan 12, 2024

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I was struggling to discover the cause of this issue it takes me a lot of time.

Current Behaviour
When "Custom Authentication" is enabled in app settings menu, the custom actions doesnt compile, this error appear:

Unknown error compiling custom code. A common cause is a custom widget or action whose name in the code does not match the name provided in the editor.

Expected Behavior

That FF compiles custom actions correctly even with custom authentication enabled.

Steps to Reproduce

  1. Open FF dashboard
  2. Create a blank project
  3. Add a blank page called Login
  4. Go to AppSettings/Authentication and enable it
  5. Put Login Page into entry page
  6. Put Home page into loggeIn page
  7. Go to custom code
  8. Add a blank action (that dont do nothing) with any name and save it
  9. Click compile
  10. You will see the error
  11. Go to AppSettings, turn off authentication
  12. Go to the custom action and change its name and save it
  13. Click compile
  14. The error disappear

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT40k8jcw4lPn7wB1pDMbMExqCU5Jm49becSmu5raDYvCIyqOph/fsjeUBFoOP2iTWlhHEybglsB/96PhobxV8IEGAqcQYBywc9caDnyJHq8Rr6hOpGORER6O99gf1Cm4JmJ2iRSIbZoSnw9wGeUfN6XSnPDGZu/Zwh9f6PHaOI=

Context

It is a super bad behaviour to compile actions, so I cant know if the compilation of my app is wrong. And I dont know if it is affecting my app code in some way.

Visual documentation

image

image

Additional Info

No response

Environment

- FlutterFlow version: 4.0
- Platform: Web
- Browser name and version: Chrome Versión 120.0.6099.217 
- Operating system and version affected: Windows 11
@nev-21 nev-21 added the status: needs triage A potential issue that has not been confirmed as a bug. label Jan 12, 2024
@Franco98404
Copy link

I have the error too

@BenjaminAlvarezDiaz
Copy link

me too

@dfeinberg5
Copy link

I'm also running into this error with a custom widget

@silva8
Copy link

silva8 commented Jan 14, 2024

I have a similar issue, but only when I choose Custom Authentication Type.

When I create an empty custom action having Custom Authentication Type I get Unknown compilation error, it does not happen for example with Supabase Authentication Type.

@treyhendon
Copy link

As an example, the DottedBorderWidget tutorial does not compile when custom authentication is enabled, but as soon as authentication is disabled, DottedBorderWidget compiles correctly.

@hariprasadms
Copy link

Hi @treyhendon - Apologies for the delayed response to this issue. Are you still encountering the issue? I have recently tested it, but I couldn't replicate the problem.

@treyhendon
Copy link

No worries! Thanks for following up.

Unfortunately, still receiving the "Unknown error" pill when hovering over the [now failed] compile button.
image

Once clicked to view errors, the list modal is blank with "Cancel" and "Try compile again" options.
image

If it helps, here are my authentication settings as well (I'm using a self-hosted Keycloak instance):
image

And User definition:
image

@nev-21
Copy link
Author

nev-21 commented Jan 23, 2024

Hi @hariprasadms
I'm also still seeing the problem

image

@treyhendon
Copy link

Great news, v4.1 seems to have resolved this issue. Maybe we can get an explanation?

@aemelyanovff
Copy link
Collaborator

@nev-21 Thanks for reporting the issue, and thanks for the detailed steps to reproduce. It's been fixed in the last update - I can no longer reproduce it in your project.

Everyone else: if this issue still occurs in your project, please create a new issue with new steps to reproduce.

@aemelyanovff aemelyanovff added closed: fixed type: bug Something isn't working. and removed status: needs triage A potential issue that has not been confirmed as a bug. waiting for user response labels Jan 30, 2024
@ChecoG88
Copy link

ChecoG88 commented Feb 1, 2024

I have the same issue, sorry but I don't know to create a new issue.
Captura de pantalla 2024-01-31 a la(s) 7 22 30 p m

@leighajarett leighajarett added the Bug label Feb 5, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug closed: fixed type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

10 participants