Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transactions list endpoint fails with SQL error #181

Closed
mraerino opened this issue Sep 6, 2019 · 0 comments · Fixed by #187
Closed

transactions list endpoint fails with SQL error #181

mraerino opened this issue Sep 6, 2019 · 0 comments · Fixed by #187

Comments

@mraerino
Copy link
Member

mraerino commented Sep 6, 2019

- Do you want to request a feature or report a bug?

Bug

- What is the current behavior?

When doing GET /payments with a valid admin JWT

Response:

{
    "code": 500,
    "msg": "Error while querying for transactions",
    "error_id": "d26ed729-8b42-4338-8eff-8106f1caa19b"
}

Log line:

time="2019-09-06T07:12:41Z" level=error msg="500: Error while querying for transactions" admin_id=46c504a5-2842-424b-b7f4-c37ccbddef17 component=api error="sql: expected 1 arguments, got 2" instance_id=1e551f3a-20c2-412c-9363-3eac1425606d method=GET netlify_id=344dbf88-fdf9-42bb-adb4-46f01eedd629 path=/payments referer= remote_addr="<redacted>:52247" request_id=d26ed729-8b42-4338-8eff-8106f1caa19b site_url="https://<redacted>" 

- If the current behavior is a bug, please provide the steps to reproduce.

Get a Netlify site with a GoCommerce service. Get an admin JWT for that site.
Do GET https://<site>/.netlify/commerce/payments

- What is the expected behavior?

Payments should be returned.

- Please mention your Go version, and operating system version.

Docker image of tag v1.7.0 on Netlify Kubernetes Cluster

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 a pull request may close this issue.

1 participant