Wappler Version : 4.9.1
Operating System : MacOS
Server Model: NodeJS
Database Type: MSSQL
Hosting Type: Docker
Expected behavior
What do you think should happen?
When a Global $_ENV variable is created to use for the Port field in Database Connections, the value set under Project Environment tab is expected as a number
type.
Actual behavior
What actually happens?
The value used for the Port $_ENV variable is not of type number and it generates an error 500.
How to reproduce
- Create a Global $_ENV.DB_PORT
- Set a value for under Project Environment tab
- Set Port value to $_ENV.DB_PORT under Database Connections via dynamic picker
- Run an API using this database connection - it gives an error 500 with the message
The config.options.port property must be of type number
. - Remove the $_ENV variable under DB Connections and manually type the Port number - the connection works correctly
Community Page
Last updated:
Last updated: