-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
DV Sprint 62
-
0.5
TEIID spring boot is expecting the payload to be a bean, and hence throws an error. POST without request body works fine without any issues.
CREATE VIEW StockPrice (
symbol string PRIMARY KEY,
price double
) AS
SELECT p.symbol, y.price
FROM accounts.PRODUCT as p, TABLE(call invokeHttp(action=>'POST', endpoint=>QUERYSTRING('predict'), headers=>jsonObject('application/json' as "Content-Type"), request=>jsonObject('PLATINUM' as "customerClass"))) as x,
JSONTABLE(JSONPARSE(x.result,true), '$' COLUMNS price double path '@.data.segment') as y
No errors on build, when I query the odata endpoint, I see the following error.
<error xmlns="http://docs.oasis-open.org/odata/ns/metadata">
<code>TEIID30504</code>
<message>
TEIID30504 quotesvc: No bean named '
' available
</message>
</error>