listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

api to get specific bounce id returns an error response

Open Bowrna opened this issue 1 year ago • 3 comments

Version:

  • listmonk: development
  • OS: MacOS

Description of the bug and steps to reproduce:

curl -X 'GET' -u listmonk:listmonk
'http://localhost:9000/api/bounces/840167'
-H 'accept: application/json'

I am making the above API call and it returns an error response. {"message":"Error fetching Bounce: pq: syntax error at or near "rder""}

On further debugging, https://github.com/knadh/listmonk/blob/e4dcb066d9ec5991c5cc27a6f877c76fbad8a4b1/internal/core/bounces.go#L42-L58

Here in Line 44, the query bounces statement has not replaced the "order" column like how we do below in Line 26

https://github.com/knadh/listmonk/blob/e4dcb066d9ec5991c5cc27a6f877c76fbad8a4b1/internal/core/bounces.go#L16-L39

Bowrna avatar Aug 07 '24 09:08 Bowrna

hey @Bowrna i would like to work on this issue, you can assign this to me. Thanks!!

flow6979 avatar Aug 12 '24 06:08 flow6979

Please free to send a PR @Bowrna @flow6979. Thank you.

knadh avatar Aug 22 '24 16:08 knadh

Hello @knadh @Bowrna please review this PR Thanks!!

flow6979 avatar Aug 22 '24 20:08 flow6979

Merged in #2007.

knadh avatar Sep 11 '24 16:09 knadh