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)
- Mobile: Back button from linked note goes back to notebook list instead of previous note
- Desktop: No MacOs Intel pre lease version for 3.0.8 HOT 2
- Cannot load certain images even though they're present in the .resource folder HOT 1
- Can't change markdown settings for published notes
- global search: changing a note from the result switches to a random note HOT 3
- Pressing `Tab` to navigate from the notebook list to the note list is broken if the selected note isn't visible
- Can't drag and drop images from browser and render properly HOT 3
- Update notification steal window focus. HOT 2
- Joplin MD exporter - data loss due to note titles HOT 1
- Plugins: settings fields that are secure are unable to be set on keychain HOT 7
- Implement a plugin API to display a progress bar
- Korean translation error HOT 5
- ENEX import loses titles of some notes HOT 2
- PostgreSQL Version Test
- Joplin takes longer to start when clicking on app icon instead of tray icon HOT 2
- Joplin cannot login after PostgreSQL major update HOT 2
- Adding a link in beta editor selects random text
- βAlt + ββ for back navigation collides with a built-in shortcut of notes sort order
- Title Search seems to return wrong results HOT 3
- Make copy and move notes action consistent with operating system HOT 1
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.