You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text field should be content, but it shouldn't return a 500.
{
"level": 50,
"time": 0,
"msg": "api.CreateWork",
"pid": 25,
"hostname": "",
"module": "works",
"exception": {
"stack": [
"Error: The property \"text\" in the input was not defined in the context.",
" at options.expansionMap.info (/usr/src/app/api/node_modules/jsonld-signatures/lib/suites/LinkedDataSignature.js:97:17)",
" at _expandObject (/usr/src/app/api/node_modules/jsonld/lib/expand.js:356:26)",
" at Object.api.expand (/usr/src/app/api/node_modules/jsonld/lib/expand.js:176:3)",
" at _expandObject (/usr/src/app/api/node_modules/jsonld/lib/expand.js:620:29)",
" at api.expand (/usr/src/app/api/node_modules/jsonld/lib/expand.js:176:3)",
" at /usr/src/app/api/node_modules/jsonld/lib/jsonld.js:327:18",
" at process._tickCallback (internal/process/next_tick.js:68:7)"
],
"message": "The property \"text\" in the input was not defined in the context.",
"type": "Error"
},
"v": 1
}
The text was updated successfully, but these errors were encountered:
The API docs in swagger hub have the correct schema, but I know it used to be text. Possibly wrong implementation by someone sending the text field here. Regardless we could handle this better. Thanks for logging the issue!
Yeah. The underlying issue is incorrect handling of input not matching default schema, which is related to #552.
People are sending text rather than content because the frost-client typings are out of date, victim of copy pasta, tracked in poetapp/frost-client#220.
lautarodragan
changed the title
Internal Server Error when sending text
POST /works: Internal Server Error when sending field not in context
Jun 19, 2019
lautarodragan
changed the title
POST /works: Internal Server Error when sending field not in context
POST /works: 500 when sending field not in context
Jun 19, 2019
lautarodragan
changed the title
POST /works: 500 when sending field not in context
POST /works: 500 when provided field not in context
Jun 19, 2019
The
text
field should becontent
, but it shouldn't return a 500.The text was updated successfully, but these errors were encountered: