The submit button will not "submit" the new manuscript
Expected behaviour
there should be an indicator that the manuscript has been submited or failed.
Current behaviour
After creating a new manuscript and uploading a pdf the submit button on the pop-up will not perform any action.
The following error is shown on the console logs:
Uncaught (in promise) Error: Something went wrong! Please contact your administrator
t app.9c27b569.js:68312
next app.9c27b569.js:221915
v app.9c27b569.js:251336
b app.9c27b569.js:251336
value app.9c27b569.js:251336
$/< app.9c27b569.js:4191
$ app.9c27b569.js:4191
next app.9c27b569.js:4191
v app.9c27b569.js:251336
b app.9c27b569.js:251336
value app.9c27b569.js:251336
v app.9c27b569.js:251336
b app.9c27b569.js:251336
value app.9c27b569.js:251336
v app.9c27b569.js:251336
b app.9c27b569.js:251336
value app.9c27b569.js:251336
exports app.9c27b569.js:377358
app.9c27b569.js:68312
The following error is shown on the console logs:
error: update "manuscripts" set "type" = $1, "id" = $2, "created" = $3, "updated" = $4, "parent_id" = $5, "submitter_id" = $6, "status" = $7, "decision" = $8, "authors" = $9, "meta" = $10, "submission" = $11, "published" = $12, "evaluations_hypothesis_map" = $13, "is_imported" = $14, "import_source" = $15, "import_source_server" = $16, "short_id" = $17, "submitted_date" = $18, "is_hidden" = $19, "form_fields_to_publish" = $20, "searchable_text" = $21, "doi" = $22, "group_id" = $23 where "manuscripts"."id" = $24 - invalid input syntax for type json name=DataError, length=230, name=error, severity=ERROR, code=22P02, detail=Token "test" is invalid., hint=undefined, position=undefined, internalPosition=undefined, internalQuery=undefined, where=JSON data, line 1: test...
PL/pgSQL function manuscripts_searchable_text_trigger() line 15 at assignment, schema=undefined, table=undefined, column=undefined, dataType=undefined, constraint=undefined, file=json.c, line=1269, routine=report_invalid_token, originalStack=error: update "manuscripts" set "type" = $1, "id" = $2, "created" = $3, "updated" = $4, "parent_id" = $5, "submitter_id" = $6, "status" = $7, "decision" = $8, "authors" = $9, "meta" = $10, "submission" = $11, "published" = $12, "evaluations_hypothesis_map" = $13, "is_imported" = $14, "import_source" = $15, "import_source_server" = $16, "short_id" = $17, "submitted_date" = $18, "is_hidden" = $19, "form_fields_to_publish" = $20, "searchable_text" = $21, "doi" = $22, "group_id" = $23 where "manuscripts"."id" = $24 - invalid input syntax for type json
at Parser.parseErrorMessage (/home/node/app/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/home/node/app/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/home/node/app/node_modules/pg-protocol/dist/parser.js:39:38)
at Socket.<anonymous> (/home/node/app/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23), client=postgres
info: ::ffff:172.18.0.1 - - [18/Jan/2024:13:28:59 +0000] "POST /graphql HTTP/1.1" 200 117 "https://url/group/versions/2c330264-0cf5-4ebe-8a78-e9be52a70cb8/submit" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"
error: update "manuscripts" set "type" = $1, "id" = $2, "created" = $3, "updated" = $4, "parent_id" = $5, "submitter_id" = $6, "status" = $7, "decision" = $8, "authors" = $9, "meta" = $10, "submission" = $11, "published" = $12, "evaluations_hypothesis_map" = $13, "is_imported" = $14, "import_source" = $15, "import_source_server" = $16, "short_id" = $17, "submitted_date" = $18, "is_hidden" = $19, "form_fields_to_publish" = $20, "searchable_text" = $21, "doi" = $22, "group_id" = $23 where "manuscripts"."id" = $24 - invalid input syntax for type json name=DataError, length=230, name=error, severity=ERROR, code=22P02, detail=Token "test" is invalid., hint=undefined, position=undefined, internalPosition=undefined, internalQuery=undefined, where=JSON data, line 1: test...
PL/pgSQL function manuscripts_searchable_text_trigger() line 15 at assignment, schema=undefined, table=undefined, column=undefined, dataType=undefined, constraint=undefined, file=json.c, line=1269, routine=report_invalid_token, originalStack=error: update "manuscripts" set "type" = $1, "id" = $2, "created" = $3, "updated" = $4, "parent_id" = $5, "submitter_id" = $6, "status" = $7, "decision" = $8, "authors" = $9, "meta" = $10, "submission" = $11, "published" = $12, "evaluations_hypothesis_map" = $13, "is_imported" = $14, "import_source" = $15, "import_source_server" = $16, "short_id" = $17, "submitted_date" = $18, "is_hidden" = $19, "form_fields_to_publish" = $20, "searchable_text" = $21, "doi" = $22, "group_id" = $23 where "manuscripts"."id" = $24 - invalid input syntax for type json
at Parser.parseErrorMessage (/home/node/app/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/home/node/app/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/home/node/app/node_modules/pg-protocol/dist/parser.js:39:38)
at Socket.<anonymous> (/home/node/app/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23), client=postgres
info: ::ffff:172.18.0.1 - - [18/Jan/2024:13:28:59 +0000] "POST /graphql HTTP/1.1" 200 117 "https://url/group/versions/2c330264-0cf5-4ebe-8a78-e9be52a70cb8/submit" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"
Steps to reproduce
- create a manuscript
- upload a pdf
- add the needed info on the fields
- Click submit