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
const{ uploaded }=JSON.parse(body);// body is json
For the line above the API (/build/upload/snapshot) responded with a non-JSON answer.
My HTML snapshot was 1.530.769 bytes large, because the CSS was inserted inline.
Error
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at Client.uploadSnapshot (/home/jaller94/Git/kiprotect/kiprotect-app/node_modules/@getbasset/node-client/lib/client.js:87:31)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Basset.uploadSnapshotFile (/home/jaller94/Git/kiprotect/kiprotect-app/node_modules/@getbasset/node-client/lib/basset.js:71:5)
node-client/lib/client.js
Line 86 in d132977
For the line above the API (
/build/upload/snapshot
) responded with a non-JSON answer.My HTML snapshot was 1.530.769 bytes large, because the CSS was inserted inline.
Error
Code submitting the snapshots
My upload code is copied from this file:
https://github.com/basset/basset/blob/200088fe30353c0eeedfb1e824c9ac8a38e92aa2/express/tests/selenium/config/snapshots.js#L68-L88
Actual network response
With the HTTP code
413
I got the following response:The text was updated successfully, but these errors were encountered: