You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openserverless.apache.org by "d4rkstar (via GitHub)" <gi...@apache.org> on 2025/03/06 23:25:02 UTC

[I] [OPERATOR] - invalid json from psql system action [openserverless]

d4rkstar opened a new issue, #100:
URL: https://github.com/apache/openserverless/issues/100

   - [X] I have searched the [issues](https://github.com/apache/openserverless/issues) of this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   It seems that the whisk-system action psql is not returning valid json.
   
   ### Ⅱ. Describe what happened
   While porting `ops devel psql` i noticed that the output from the system action is not valid json.
   
   Example
   
   ```
   $ ops devel psql sql "SELECT * FROM demo.CONTACTS"
   [{'id': 1, 'name': 'User', 'email': 'user@email.com', 'phone': '393333456789', 'message': 'Hello!'}]
   ```
   
   The main issue with that JSON-like string is that it uses single quotes (') instead of double quotes (") as required by valid JSON.
   
   ### Ⅲ. Describe what you expected to happen
   To have a valid json 
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. Invoke the system action psql with a request, sending a basic query
   2. Check the output
   
   
   ### Ⅴ. Anything else we need to know?
   No
   
   ### Ⅵ. Environment:
   
   - Kind 1.32.0
   - OPS CLI version:  0.1.0-2501041342.dev
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [OPERATOR] - invalid json from psql system action [openserverless]

Posted by "d4rkstar (via GitHub)" <gi...@apache.org>.
d4rkstar commented on issue #100:
URL: https://github.com/apache/openserverless/issues/100#issuecomment-2719332052

   This was fixed in version 0.1.0-incubating.2503091842


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [OPERATOR] - invalid json from psql system action [openserverless]

Posted by "d4rkstar (via GitHub)" <gi...@apache.org>.
d4rkstar closed issue #100: [OPERATOR] - invalid json from psql system action
URL: https://github.com/apache/openserverless/issues/100


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org