Closed kkodmani closed 1 year ago
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
Gonna review and run the code tonight. Does your PR contain everything needed to run it? (Aka no missing api keys for your cloud rabbit instance)?
Gonna review and run the code tonight. Does your PR contain everything needed to run it? (Aka no missing api keys for your cloud rabbit instance)?
No missing API keys as they are out in the open in the file right now. All you do need is to the missing dependency that is added in the package json.
You can simulate by 1) Opening two terminals one for the usual server at 3000 2) The other as node ./consumer (This terminal will consume anything that you feed into the the first terminal).
You can simulate by
1) Opening two terminals one for the usual server at 3000
2) The other as node ./consumer (This terminal will consume anything that you feed into the the first terminal).
Is the producer/consumer bidirectional between the express server and the consumer process?
You can simulate by
- Opening two terminals one for the usual server at 3000
- The other as node ./consumer (This terminal will consume anything that you feed into the the first terminal).
Is the producer/consumer bidirectional between the express server and the consumer process?
It could be, but not for this one. More info on it here
Producer keeps sending messages to a queue and does not know a consumer exists. A consumer will do nothing. When called, it will consume the messages and wait indefinitely until another message passes by. These can be configured in time as such timeouts and how long to wait before shutting down.
At a cursory glance everything seems to be correct. I'll run it later today to make sure
Manually tested the code (aka ran the fromIp and fromAddress endpoints and the consumer works properly). Code looks good too. Check other comment for possible changes, otherwise approved.
Will wrap the code tomorrow morning 👍
Manually tested it as well, returns all the weather data from the API,
Adding a producer and consumer the geo location and weather retrieval services. I also added a fix where entering the wrong city crashes the server.