joshsoftware / peerly-backend

PeerLy is a peer-reward and recognition system with high-5's. (hi5)
0 stars 0 forks source link

Error in fetching user profile after quater switch, Additionally for those user who was having badge and now after reset its not showing. #39

Open shailendrakanherkar18 opened 1 month ago

shailendrakanherkar18 commented 1 month ago

Logs :

time="2024-10-01T11:56:05+05:30" level=info msg="getUserByIdHandler: request: &{GET /peerly/user_profile HTTP/1.0 1 0 map[Accept:[application/json, text/plain, /] Accept-Encoding:[gzip, deflate, br] Accept-Language:[en-IN,en-GB;q=0.9,en;q=0.8] Accept-Version:[application/vnd.peerly.v1] Authorization:[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MjAzLCJSb2xlIjoxLCJleHAiOjE3MzAxODMwMzN9.1rV1A7-VPJqo09xhKOu7AdKVyO9ozk-sPxikTr-fgVo] Connection:[close] Cookie:[_intranet_session=d76e3d29c0371a18f69308366e621c9e] User-Agent:[Intranet/20 CFNetwork/1568.100.1 Darwin/24.0.0] X-Forwarded-For:[202.149.221.42] X-Forwarded-Proto:[https] X-Real-Ip:[202.149.221.42]] {} 0 [] true intranet.joshsoftware.com map[] map[] map[] 127.0.0.1:57574 /peerly/user_profile 0xc0003f4330 [] map[]}" req_id=f039849d-aeb8-4068-8433-e6b01a432968 user_id=203 time="2024-10-01T11:56:05+05:30" level=error msg="error in getGradeById. id:0. err:sql: no rows in result set" req_id=f039849d-aeb8-4068-8433-e6b01a432968 user_id=203 time="2024-10-01T11:56:05+05:30" level=error msg="getUserByIdHandler: err: Internal server error" req_id=f039849d-aeb8-4068-8433-e6b01a432968 user_id=203 time="2024-10-01T11:56:05+05:30" level=info msg="2024-10-01T11:56:05+05:30 | 500 | \t 1.676796ms | intranet.joshsoftware.com | GET /peerly/user_profile" time="2024-10-01T11:56:05+05:30" level=error msg="appreciationRepo: res data: [{12 Respect We respect individual opinions and believe in living up to and exceeding our own standards. Shailendra has been the most reliable person since our college days. For those who don’t know, Shailendra is my senior from the same college, though he has never made me feel the difference. His focus and approach to life make him someone to admire and look up to. Whether as a colleague, friend, or family member, Shailendra treats everyone with grace. His presence makes a difference, and for that, I have great respect for him. true 21700 2 137 Pranav Naik {https://api.honohr.com/assets/uploads/profile_pictures/0a1c768f70d79c85244178ae85ddd764.png true} Software Engineer 203 Shailendra Kanherkar {https://api.honohr.com/assets/uploads/profile_pictures/0a2052a2843a90b32c3d85184055862f.jpeg true} Project Manager 12 false 0 1724239302658 1724239302658}]" req_id=826130bb-c9a3-4cc7-aed8-c507795fac55 user_id=203 time="2024-10-01T11:56:05+05:30" level=info msg="Appreciations data fetched successfully" req_id=826130bb-c9a3-4cc7-aed8-c507795fac55 user_id=203 time="2024-10-01T11:56:05+05:30" level=info msg="2024-10-01T11:56:05+05:30 | 200 | \t 2.955357ms | intranet.joshsoftware.com | GET /peerly/appreciations" time="2024-10-01T11:56:06+05:30" level=info msg="getUserByIdHandler: request: &{GET /peerly/user_profile HTTP/1.0 1 0 map[Accept:[application/json, text/plain, /] Accept-Encoding:[gzip, deflate, br] Accept-Language:[en-IN,en-GB;q=0.9,en;q=0.8] Accept-Version:[application/vnd.peerly.v1] Authorization:[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MjAzLCJSb2xlIjoxLCJleHAiOjE3MzAxODMwMzN9.1rV1A7-VPJqo09xhKOu7AdKVyO9ozk-sPxikTr-fgVo] Connection:[close] Cookie:[_intranet_session=d76e3d29c0371a18f69308366e621c9e] User-Agent:[Intranet/20 CFNetwork/1568.100.1 Darwin/24.0.0] X-Forwarded-For:[202.149.221.42] X-Forwarded-Proto:[https] X-Real-Ip:[202.149.221.42]] {} 0 [] true intranet.joshsoftware.com map[] map[] map[] 127.0.0.1:57600 /peerly/user_profile 0xc0003f58f0 [] map[]}" req_id=6454413e-6051-43fc-a571-c47168b0cc5c user_id=203 time="2024-10-01T11:56:06+05:30" level=error msg="error in getGradeById. id:0. err:sql: no rows in result set" req_id=6454413e-6051-43fc-a571-c47168b0cc5c user_id=203 time="2024-10-01T11:56:06+05:30" level=error msg="getUserByIdHandler: err: Internal server error" req_id=6454413e-6051-43fc-a571-c47168b0cc5c user_id=203 time="2024-10-01T11:56:06+05:30" level=info msg="2024-10-01T11:56:06+05:30 | 500 | \t 1.393028ms | intranet.joshsoftware.com | GET /peerly/user_profile" time="2024-10-01T11:56:08+05:30" level=info msg="getUserByIdHandler: request: &{GET /peerly/user_profile HTTP/1.0 1 0 map[Accept:[application/json, text/plain, /] Accept-Encoding:[gzip, deflate, br] Accept-Language:[en-IN,en-GB;q=0.9,en;q=0.8] Accept-Version:[application/vnd.peerly.v1] Authorization:[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MjAzLCJSb2xlIjoxLCJleHAiOjE3MzAxODMwMzN9.1rV1A7-VPJqo09xhKOu7AdKVyO9ozk-sPxikTr-fgVo] Connection:[close] Cookie:[_intranet_session=d76e3d29c0371a18f69308366e621c9e] User-Agent:[Intranet/20 CFNetwork/1568.100.1 Darwin/24.0.0] X-Forwarded-For:[202.149.221.42] X-Forwarded-Proto:[https] X-Real-Ip:[202.149.221.42]] {} 0 [] true intranet.joshsoftware.com map[] map[] map[] 127.0.0.1:57606 /peerly/user_profile 0xc0000ea240 [] map[]}" req_id=0c7635eb-3d6a-47d1-8ef8-e1382eb2c5ad user_id=203 time="2024-10-01T11:56:08+05:30" level=error msg="error in getGradeById. id:0. err:sql: no rows in result set" req_id=0c7635eb-3d6a-47d1-8ef8-e1382eb2c5ad user_id=203 time="2024-10-01T11:56:08+05:30" level=error msg="getUserByIdHandler: err: Internal server error" req_id=0c7635eb-3d6a-47d1-8ef8-e1382eb2c5ad user_id=203 time="2024-10-01T11:56:08+05:30" level=info msg="2024-10-01T11:56:08+05:30 | 500 | \t 1.453107ms | intranet.joshsoftware.com | GET /peerly/user_profile" time="2024-10-01T11:56:12+05:30" level=info msg="getUserByIdHandler: request: &{GET /peerly/user_profile HTTP/1.0 1 0 map[Accept:[application/json, text/plain, /] Accept-Encoding:[gzip, deflate, br] Accept-Language:[en-IN,en-GB;q=0.9,en;q=0.8] Accept-Version:[application/vnd.peerly.v1] Authorization:[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MjAzLCJSb2xlIjoxLCJleHAiOjE3MzAxODMwMzN9.1rV1A7-VPJqo09xhKOu7AdKVyO9ozk-sPxikTr-fgVo] Connection:[close] Cookie:[_intranet_session=d76e3d29c0371a18f69308366e621c9e] User-Agent:[Intranet/20 CFNetwork/1568.100.1 Darwin/24.0.0] X-Forwarded-For:[202.149.221.42] X-Forwarded-Proto:[https] X-Real-Ip:[202.149.221.42]] {} 0 [] true intranet.joshsoftware.com map[] map[] map[] 127.0.0.1:50874 /peerly/user_profile 0xc000454db0 [] map[]}" req_id=1b305e8c-a10c-4f5c-8754-151b29affe4c user_id=203 time="2024-10-01T11:56:12+05:30" level=error msg="error in getGradeById. id:0. err:sql: no rows in result set" req_id=1b305e8c-a10c-4f5c-8754-151b29affe4c user_id=203 time="2024-10-01T11:56:12+05:30" level=error msg="getUserByIdHandler: err: Internal server error" req_id=1b305e8c-a10c-4f5c-8754-151b29affe4c user_id=203 time="2024-10-01T11:56:12+05:30" level=info msg="2024-10-01T11:56:12+05:30 | 500 | \t 1.560555ms | intranet.joshsoftware.com | GET /peerly/user_profile"