WebViewer Version:
Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? - scroll sync is not available in demo
Are you using the WebViewer server? yes
Does the issue only happen on certain browsers? no
Is your issue related to a front-end framework? no
Is your issue related to annotations? no
Please give a brief summary of your issue:
(Think of this as an email subject)
Error UpdateScrollSyncSession and CreateScrollSyncSession – BAD_USER_INPUT non integer values, we cannot control input.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
When attempting to create or while leading a scrollSync session, some users experience errors when scrolling. The leader is able to scroll, but receives console and network errors. The followers are unable to sync with user due to errors.
Further investigation shows the createScrollSyncSession and updateScrollSyncSession methods are sending non integers.
How do we catch these errors and retry with proper integers, if these are built in private functions of yours?
{
"operationName": "CreateScrollSyncSession",
"variables": {
"documentId": "ab479fb2-6ef3-4e42-91ea-619f72637226",
"position": {
"scrollHeight": 2400,
"scrollTop": 1933.125
}
},
"query": "mutation CreateScrollSyncSession($documentId: ID!, $position: ScrollSyncPositionInput!) {\n createScrollSyncSession(documentId: $documentId, position: $position) {\n leaderId\n documentId\n position {\n scrollTop\n scrollHeight\n __typename\n }\n sessionId\n __typename\n }\n}\n"
}
{
"errors": [
{
"message": "Variable \"$position\" got invalid value 1933.125 at \"position.scrollTop\"; Int cannot represent non-integer value: 1933.125",
"extensions": {
"code": "BAD_USER_INPUT",
"exception": {
"stacktrace": [
"GraphQLError: Variable \"$position\" got invalid value 1933.125 at \"position.scrollTop\"; Int cannot represent non-integer value: 1933.125",
" at /app/node_modules/graphql/execution/values.js:116:15",
" at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:131:9)",
" at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:105:34)",
" at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:54:14)",
" at coerceInputValue (/app/node_modules/graphql/utilities/coerceInputValue.js:37:10)",
" at _loop (/app/node_modules/graphql/execution/values.js:109:69)",
" at coerceVariableValues (/app/node_modules/graphql/execution/values.js:121:16)",
" at getVariableValues (/app/node_modules/graphql/execution/values.js:50:19)",
" at buildExecutionContext (/app/node_modules/graphql/execution/execute.js:203:61)",
" at executeImpl (/app/node_modules/graphql/execution/execute.js:101:20)"
]
}
}
}
]
}
{
"operationName": "UpdateScrollSyncSession",
"variables": {
"sessionId": "1690396681209-fd030ab479",
"position": {
"scrollHeight": 2400,
"scrollTop": 336.875
}
},
"query": "mutation UpdateScrollSyncSession($sessionId: String!, $position: ScrollSyncPositionInput!) {\n updateScrollSyncSession(sessionId: $sessionId, position: $position) {\n leaderId\n documentId\n position {\n scrollTop\n scrollHeight\n __typename\n }\n sessionId\n __typename\n }\n}\n"
}
{
"errors": [
{
"message": "Variable \"$position\" got invalid value 336.875 at \"position.scrollTop\"; Int cannot represent non-integer value: 336.875",
"extensions": {
"code": "BAD_USER_INPUT",
"exception": {
"stacktrace": [
"GraphQLError: Variable \"$position\" got invalid value 336.875 at \"position.scrollTop\"; Int cannot represent non-integer value: 336.875",
" at /app/node_modules/graphql/execution/values.js:116:15",
" at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:131:9)",
" at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:105:34)",
" at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:54:14)",
" at coerceInputValue (/app/node_modules/graphql/utilities/coerceInputValue.js:37:10)",
" at _loop (/app/node_modules/graphql/execution/values.js:109:69)",
" at coerceVariableValues (/app/node_modules/graphql/execution/values.js:121:16)",
" at getVariableValues (/app/node_modules/graphql/execution/values.js:50:19)",
" at buildExecutionContext (/app/node_modules/graphql/execution/execute.js:203:61)",
" at executeImpl (/app/node_modules/graphql/execution/execute.js:101:20)"
]
}
}
}
]
}
THIS DOES NOT EVEN CATCH THE ERROR.
try {
session.current = await document.createScrollSyncSession();
} catch (e) {
console.log('create session error: ', e);
}
Please provide a link to a minimal sample where the issue is reproducible:
This is a password protected app, i can get on a call with you but will not send link.
The only personal computer I can recreate on is a windows Lenovo think pad, other users seem to be windows as well.