Closed maifs closed 3 months ago
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
Version
14.17.5
Platform
windows 10 64 bit
Subsystem
No response
What steps will reproduce the bug?
I am trying to trouble shoot/fix my nodejs upload image api:
My service is being stuck at somewhere. My service is too simple, just uploading the image by resizing through sharp api in a directory and return the full path of that file.
When I select some image at first time then everything works fine and image upload successfully with a response
but When I try to crop that image after clicking on the image and try to save it (at second time) then nodejs service return following response.
I don't why it is being happened, I tried to debug the service code and It didn't stop at anywhere. Flow has been passed/executed successfully, I didn't catch any exception/error in code.
What can be the issue in it because it still displaying
I am sharing my nodejs service code as well as reactjs code. please look into it. Thank you.
-----------------package.json of nodejs
------ index.js---------------------------NodeJs
and following is my reactjs code.
and the client side code is (reactjs) :
My service is too simple, just uploading the image by resizing through sharp api in a directory and return the full path of that file.
When I select some image at first time then everything works fine and image upload successfully with a response
but When I try to crop that image after clicking on the image and try to save it (at second time) then nodejs service return following response.
I don't why it is being happened, I tried to debug the service code and It didn't stop at anywhere. Flow has been passed/executed successfully, I didn't catch any exception/error in code.
What can be the issue in it because it still displaying
const jsonRes = await responseMain.json(); I am sharing my nodejs service code as well as reactjs code. please look into it. Thank you.
How often does it reproduce? Is there a required condition?
It is coming in the second attempt, first attempt is correct.
Create a node application using my source code as I have mentioned. Your client source should be like below
I am using it in reactjs then it will be reproduced.
What is the expected behavior?
Expected behavior is
It should work and upload the base64 image at second or every attempt.
What do you see instead?
My second attempt is being failed see these images. Browser console is like this.
and display the display the service call status as 200 and success but response it nothing
instead this message is coming "failed to load response data. no resource with given identifier found"
https://i.stack.imgur.com/6CzSQ.png https://i.stack.imgur.com/Y7LQM.png https://i.stack.imgur.com/h1uHx.png
If I try to debug at nodejs server then there is no error there . I debugged the each statement.
Additional information
No response