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

MSSQL custom port #1513

Open
vidz1979 opened this issue Mar 2, 2023 · 1 comment
Open

MSSQL custom port #1513

vidz1979 opened this issue Mar 2, 2023 · 1 comment
Labels
Bug Something isn't working

Comments

@vidz1979
Copy link

vidz1979 commented Mar 2, 2023

Describe the bug

Trying to connect to MSSQL using a custom port got error: Request Error: The "config.options.port" property must be of type number.

To Reproduce

.env:

LOWDEFY_SECRET_MSSQL_CONNECTION_STRING = mssql://<user>:<password>@<server_name>:45678/<database>

lowdefy.yaml

connections:
  - id: mssql
    type: Knex
    properties:
      client: mssql
      connection:
        _secret: MSSQL_CONNECTION_STRING

Example configuration reproducing the issue, or steps to reproduce the behavior.

Screenshots

image

Lowdefy Version

3.23.2

@vidz1979 vidz1979 added the Bug Something isn't working label Mar 2, 2023
@vidz1979
Copy link
Author

vidz1979 commented Mar 2, 2023

If I configure mssql like this works:

connections:
  - id: mssql
    type: Knex
    properties:
      client: mssql
      connection:
        host:
          _secret: MSSQL_SERVER
        port: 45678
        database:
          _secret: MSSQL_DB
        user:
          _secret: MSSQL_USER
        password:
          _secret: MSSQL_PASSWORD

But if I use _secret: MSSQL_PORT in port config, I got a new Request Error: The "config.options.port" property must be of type number.

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

No branches or pull requests

1 participant