Skip to content

Conversation

@Lina0Elman
Copy link
Contributor

No description provided.

@taljacob2
Copy link
Member

If the user does not have an uploaded Resume already, and then wants to "Score the Resume" in the http://localhost:5000/resume page, he can upload a resume there, but the code searches for the "uploaded resume of the user" which he does not have, (and not the resume uploaded in the http://localhost:5000/resume page) and the app crashes.

PS I:\Tal\Code\js\NextStep\nextstep-backend> npm run dev

> ex@1.0.0 dev
> nodemon ./src/server.ts

[nodemon] 3.1.9
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts,json
[nodemon] starting `ts-node ./src/server.ts`
(node:55320) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Example app listening at http://localhost:3000
Connected to DataBase
Companies already initialized. Skipping insertion.
No resume found for user 67f926a44b84144eba9e1640
No resume found for user 67f926a44b84144eba9e1640
No resume found for user 67f926a44b84144eba9e1640
Error updating resume: Error: Resume not found
    at updateResume (I:\Tal\Code\js\NextStep\nextstep-backend\src\services\resume_service.ts:177:19)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.getStreamResumeScore (I:\Tal\Code\js\NextStep\nextstep-backend\src\controllers\resume_controller.ts:96:9)
Error: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (node:_http_outgoing:699:11)
    at ServerResponse.header (I:\Tal\Code\js\NextStep\nextstep-backend\node_modules\express\lib\response.js:794:10)
    at ServerResponse.send (I:\Tal\Code\js\NextStep\nextstep-backend\node_modules\express\lib\response.js:174:12)
    at ServerResponse.json (I:\Tal\Code\js\NextStep\nextstep-backend\node_modules\express\lib\response.js:278:15)
    at handleError (I:\Tal\Code\js\NextStep\nextstep-backend\src\utils\handle_error.ts:34:25)
    at Object.getStreamResumeScore (I:\Tal\Code\js\NextStep\nextstep-backend\src\controllers\resume_controller.ts:102:24)
    at processTicksAndRejections (node:internal/process/task_queues:105:5) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
[nodemon] app crashed - waiting for file changes before starting...

@taljacob2
Copy link
Member

Merging for the deploy for the test of 19/8/2025.

@taljacob2 taljacob2 merged commit 9004f35 into master Aug 19, 2025
0 of 4 checks passed
@taljacob2 taljacob2 deleted the NXD-27-Edit-feed-page branch August 19, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants