Skip to content

[Bug]: dataSourceConfig.dynamicParamsConfig is undefined when using the Firebase plugin #313

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

Closed
1 task done
louga31 opened this issue Jul 28, 2023 · 0 comments · Fixed by #314
Closed
1 task done
Assignees
Labels
Bug Something isn't working Needs triage Needs to be reviewed by core team

Comments

@louga31
Copy link
Contributor

louga31 commented Jul 28, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When running a query using the Firebase plugin, I get this error:
image

Expected Behavior

The query should go through and not cause an error

Steps to reproduce

  1. Build Lowcoder from source on docker using the steps on the github repo
  2. Create a Firebase datasource
  3. Create any query using this datasource

Environment

OS: Ubuntu 22.04.2 LTS aarch64
Kernel: 5.15.0-1037-oracle aarch64
Arch: aarch64
Docker version: 24.0.2
Git version: 2.34.1
Shell: /bin/zsh

Additional Information

The error happens in the if condition of the runPluginQuery function (server/node-service/src/services/plugin.ts line 217)
image
image
By adding this logging:

console.log(dataSourceConfig);
console.log(dataSourceConfig.dynamicParamsConfig);

I can confirm dataSourceConfig.dynamicParamsConfig is indeed undefined

{
    privateKey: 'supersecrettoken',
    firestoreId: 'secretID',
    databaseUrl: 'https://firebase.com/'
}
undefined
@louga31 louga31 added Bug Something isn't working Needs triage Needs to be reviewed by core team labels Jul 28, 2023
@louga31 louga31 changed the title [Bug]: dataSourceConfig.dynamicParamsConfig is undefines when using the Firebase plugin [Bug]: dataSourceConfig.dynamicParamsConfig is undefined when using the Firebase plugin Jul 28, 2023
@aq-ikhwa-tech aq-ikhwa-tech self-assigned this Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs triage Needs to be reviewed by core team
Projects
None yet
2 participants