Comments (3)
Dev info: It happens on packages/lib/services/rest/Api.ts
line 247 which means something somewhere is throwing a string instead of an error object
Edit: @personalizedrefrigerator, it's probably this commit: a0f003f When we call reject
we should pass an error object instead of a string whenever possible (Actually I saw there's a prefer-promise-reject-errors rule which we should implement to more easily detect those)
from joplin.
it's probably this commit: a0f003f When we call reject we should pass an error object instead of a string whenever possible
I've created a pull request that should cause the correct error message to be displayed (#10368). While it improves the error message, it doesn't seem to fix the issue.
I'm in the process of doing a git bisect
.
Edit:
Error messages when building from #10308
Clipping https://onlinelibrary.wiley.com/doi/10.1111/mmi.15236 from #10368:
There was some error creating the note: {"error":"Internal Server Error: Image at /home/builder/.config/joplindev-desktop/profile-0fof4zei/tmp/mmi15236-fig-0001-m_4abcf3d737f8408dac637304ea39a532.png failed to load.: \n\nError: Image at /home/builder/.config/joplindev-desktop/profile-0fof4zei/tmp/mmi15236-fig-0001-m_4abcf3d737f8408dac637304ea39a532.png failed to load.\n at image.onerror (/home/builder/Documents/joplin/packages/lib/shim-init-node.js:180:50)"}
If I reset handleResizeImage_
to 0e6b5b3 (a commit before it was updated to use an Image
rather than native-image
), I get
There was some error creating the note: {"error":"Internal Server Error: Image is invalid or does not exist: /home/builder/.config/joplindev-desktop/profile-0fof4zei/tmp/mmi15236-fig-0001-m_cf904fa17b0946f9a12c55e2000a300c.png: \n\nError: Image is invalid or does not exist: /home/builder/.config/joplindev-desktop/profile-0fof4zei/tmp/mmi15236-fig-0001-m_cf904fa17b0946f9a12c55e2000a300c.png\n at /home/builder/Documents/joplin/packages/lib/shim-init-node.js:173:27\n at Generator.next (<anonymous>)\n at /home/builder/Documents/joplin/packages/lib/shim-init-node.js:8:71\n at new Promise (<anonymous>)\n at __awaiter (/home/builder/Documents/joplin/packages/lib/shim-init-node.js:4:12)\n at handleResizeImage_ (/home/builder/Documents/joplin/packages/lib/shim-init-node.js:166:16)\n at Object.<anonymous> (/home/builder/Documents/joplin/packages/lib/shim-init-node.js:278:34)\n at Generator.next (<anonymous>)\n at fulfilled (/home/builder/Documents/joplin/packages/lib/shim-init-node.js:5:58)"}
A git bisect
points to 9e0a046 as being the first commit where this issue happens.
from joplin.
solved in https://github.com/laurent22/joplin/releases/tag/v3.0.6
from joplin.
Related Issues (20)
- The flatpak build has a GitHub username instead of a Name HOT 1
- Tags from v2 not in v3
- Ctrl + Shift + S inconsistency HOT 2
- Add more option when long pressing the icon on mobile HOT 1
- Mobile: Quickly disabling/enabling multiple plugins from settings can lead to errors and plugins missing from UI
- Plugin settings stored with `SettingStorageType.File` occasionally lost when restarting Joplin HOT 1
- Plugins: Default values not applied for `SettingStorageType.File` settings
- Content of last note is not showed on startup when "All notes" is used HOT 4
- Note diseappear when selected for edit from a TAG list (Works OK when selected from a Notebook) HOT 3
- Android text editor: Cursor jump at note end HOT 2
- Cant update HOT 3
- iOS,Android: Dropbox sync broken HOT 14
- Mismatched translations HOT 3
- Note attachment changes not reflected after reducing them
- Disable sync lock support HOT 4
- iOS: Can't accept encrypted shared notebooks HOT 4
- IOS Application does not open HOT 5
- 502 Bad Gateway right now! HOT 5
- Desktop: Beta Editor: Toggle checkbox using Markdown Viewer does not check box in Markdown Editor HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joplin.