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

Error in console #106

Closed
seethalelias-aot opened this issue Jun 11, 2021 · 1 comment
Closed

Error in console #106

seethalelias-aot opened this issue Jun 11, 2021 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@seethalelias-aot
Copy link
Contributor

Bug Report: Getting error in console

Issue: Could not connect to API server while submitting form

  • formsflow.ai Version: forms flow v4
  • Browser: Google chrome
  • Browser version: Version 91.0.4472.101 (Official Build) (64-bit)

Steps to Reproduce

1.http://localhost:3000/form
2.login as client
3.submit a form

Observed Behaviour

Screenshots:
1
2

Response: {"status":400,"message":"Cast to ObjectId failed for value "formsflow-client@example.com" (type string) at path "_id" for model "submission""}

@abhilash-aot abhilash-aot added bug Something isn't working good first issue Good for newcomers labels Jun 11, 2021
@abhilash-aot abhilash-aot self-assigned this Jun 11, 2021
@abhilash-aot
Copy link
Contributor

This is currently a known issue and expected behavior. Will update in changelog know issues list for now.

  • This occurs because we are having the list of users in keycloak only and not in formio Db. The react-formio (https://www.npmjs.com/package/react-formio) component by default checks for the user to be available in formio db with the /current api on each submission regardless of using a external user authentication which would fail in the scenario.
    - You can ignore this error as such for now, it wont have any effect as such in the workflow submission.

We will try to update a fix on this in coming releases. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants