Skip to content

Conversation

@lmangani
Copy link
Collaborator

@lmangani lmangani commented Nov 3, 2025

Potential fix for #27

WITH req AS ( SELECT http_post_raw( 'https://sandbox.senx.io/api/v0/exec', headers => MAP { 'accept': 'application/json' }, -- plain WarpScript body (no JSON quoting) 'REV', -- explicit content-type 'text/plain' ) AS res ) SELECT (res->>'status')::INT AS status, res->>'reason' AS reason, unnest(from_json((res->>'body')::JSON, '["VARCHAR"]')) AS version FROM req;

Potential fix for #27

```
WITH req AS ( SELECT http_post_raw( 'https://sandbox.senx.io/api/v0/exec', headers => MAP { 'accept': 'application/json' }, -- plain WarpScript body (no JSON quoting) 'REV', -- explicit content-type 'text/plain' ) AS res ) SELECT (res->>'status')::INT AS status, res->>'reason' AS reason, unnest(from_json((res->>'body')::JSON, '["VARCHAR"]')) AS version FROM req;
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants