Closed
Description
@atelomycterus - This was seen in the logs on dev:
I'm wondering if:
- Maybe we should add a retry mechanism to the challenge forum processor?
- If this is a bug in our version of Vanilla that has been fixed in a more recent update?
2021-07-06T10:40:07.680-04:00 { Error: cannot POST /api/v2/categories?access_token=va.HNbQh52LEsnvn6KQgJCmS10Zv_-jAJ9M.xzFBcg.3yMpRqr (500)
2021-07-06T10:40:07.680-04:00 at Response.toError (/challenge-forum-processor/node_modules/superagent/lib/node/response.js:98:13)
2021-07-06T10:40:07.680-04:00 at ResponseBase._setStatusProperties (/challenge-forum-processor/node_modules/superagent/lib/response-base.js:119:48)
2021-07-06T10:40:07.680-04:00 at new Response (/challenge-forum-processor/node_modules/superagent/lib/node/response.js:44:8)
2021-07-06T10:40:07.680-04:00 at Request._emitResponse (/challenge-forum-processor/node_modules/superagent/lib/node/index.js:918:18)
2021-07-06T10:40:07.680-04:00 at /challenge-forum-processor/node_modules/superagent/lib/node/index.js:1114:42
2021-07-06T10:40:07.680-04:00 at IncomingMessage.<anonymous> (/challenge-forum-processor/node_modules/superagent/lib/node/parsers/json.js:22:7)
2021-07-06T10:40:07.680-04:00 at emitNone (events.js:111:20)
2021-07-06T10:40:07.680-04:00 at IncomingMessage.emit (events.js:208:7)
2021-07-06T10:40:07.680-04:00 at endReadableNT (_stream_readable.js:1064:12)
2021-07-06T10:40:07.680-04:00 at _combinedTickCallback (internal/process/next_tick.js:139:11)
2021-07-06T10:40:07.680-04:00 at process._tickCallback (internal/process/next_tick.js:181:9)
2021-07-06T10:40:07.680-04:00 status: 500,
2021-07-06T10:40:07.680-04:00 text: '{\n "message": "Deadlock found when trying to get lock; try restarting transaction|Gdn_Database|Query|update `GDN_Category` `Category`\\nset `TreeLeft` = :TreeLeft,\\n `TreeRight` = :TreeRight,\\n `Depth` = :Depth,\\n `PermissionCategoryID` = :PermissionCategoryID,\\n `ParentCategoryID` = :ParentCategoryID,\\n `Sort` = :Sort\\nwhere `CategoryID` = :CategoryID"\n}',
2021-07-06T10:40:07.680-04:00 method: 'POST',
2021-07-06T10:40:07.680-04:00 path: '/api/v2/categories?access_token=va.HNbQh52LEsnvn6KQgJCmS10Zv_-jAJ9M.xzFBcg.3yMpRqr' },
2021-07-06T10:40:07.680-04:00 created: false,
2021-07-06T10:40:07.680-04:00 accepted: false,
2021-07-06T10:40:07.680-04:00 noContent: false,
2021-07-06T10:40:07.680-04:00 badRequest: false,
2021-07-06T10:40:07.680-04:00 unauthorized: false,
2021-07-06T10:40:07.680-04:00 notAcceptable: false,
2021-07-06T10:40:07.680-04:00 forbidden: false,
2021-07-06T10:40:07.680-04:00 notFound: false,
2021-07-06T10:40:07.680-04:00 unprocessableEntity: false,
2021-07-06T10:40:07.680-04:00 type: 'application/json',
2021-07-06T10:40:07.680-04:00 charset: 'utf-8',
2021-07-06T10:40:07.680-04:00 links: {},
2021-07-06T10:40:07.680-04:00 setEncoding: [Function: bound ],
2021-07-06T10:40:07.680-04:00 redirects: [],
2021-07-06T10:40:07.680-04:00 pipe: [Function] } }