[Bug]: Seeing remoteCall not defined when using merge feature
Installation Method
Docker
The Problem
Tried to use merge feature today and started seeing remoteCall not defined
Version of Stirling-PDF
0.32.0
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
/merge-pdfs
Docker Configuration
pdf:
image: frooodle/s-pdf:latest
container_name: sterling_pdf
hostname: sterling_pdf
restart: unless-stopped
volumes:
- /appdata/sterling-pdf/training_data:/usr/share/tessdata
- /sterling-pdf/configs:/configs
environment:
- DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=true
- LANGS=en_US
Relevant Log Output
Nothing on the logs
This is what I found on the browser console
downloader.js:71 ReferenceError: remoteCall is not defined
at HTMLFormElement.<anonymous> (downloader.js:40:7)
at HTMLFormElement.dispatch (jquery.min.js:2:43064)
at y.handle (jquery.min.js:2:41048)
(anonymous) @ downloader.js:71
### Additional Information
_No response_
### Browsers Affected
_No response_
### No Duplicate of the Issue
- [X] I have verified that there are no existing issues raised related to my problem.
Hey @vedhavyas! 👋 I'm here to help you with any bugs, questions, or contributions you have regarding Stirling-PDF. I'm not a human, but I can definitely assist you while you wait for a human maintainer. Let me know how I can assist you!
The error message "remoteCall not defined" suggests that the remoteCall function is either missing or not properly imported in the JavaScript file downloader.js. This issue is occurring when you attempt to use the merge feature in Stirling-PDF version 0.32.0.
Here are a few steps you can take to troubleshoot and potentially resolve this issue:
-
Check for Missing Scripts: Ensure that all necessary JavaScript files are included in your project. The
remoteCallfunction might be defined in a separate script that is not being loaded. -
Inspect JavaScript Imports: Verify that the
downloader.jsfile correctly imports or references the script whereremoteCallis defined. IfremoteCallis part of a library or another module, ensure that it is properly imported. -
Review Recent Changes: Since this issue started occurring in version 0.32.0, review any recent changes to the JavaScript files related to the merge feature. There might have been updates or refactoring that affected the availability of the
remoteCallfunction. -
Console and Network Logs: Check the browser's console and network logs for any errors or failed requests that might provide additional context about why
remoteCallis not defined. -
Docker Configuration: Ensure that your Docker setup is correctly configured and that all necessary files are being mounted and accessible within the container.
If these steps do not resolve the issue, you may need to look into the specific implementation details of the remoteCall function within the Stirling-PDF codebase or reach out to the maintainers for further assistance.
To continue talking to Dosu, mention @dosu.
Can you check if there is a cache issue I cant reproduce this with https://stirlingpdf.io/merge-pdfs Can you do f12 then right click refresh button in top left, and select hard refresh with cache clear?
Looks like it. Still see the same after hard refresh but cannot reproduce this in incognito.
So must be cache issue. Thanks!