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

Un-migrated trade data causes internal server errors #357

Closed
nullstyle opened this issue Mar 12, 2018 · 2 comments
Closed

Un-migrated trade data causes internal server errors #357

nullstyle opened this issue Mar 12, 2018 · 2 comments
Assignees

Comments

@nullstyle
Copy link
Contributor

Broken http://horizon-testnet.stellar.org/trades
Works http://horizon-testnet.stellar.org/trades?order=desc

@nullstyle nullstyle self-assigned this Mar 12, 2018
@nullstyle
Copy link
Contributor Author

time="2018-03-13T16:18:40Z" level=error msg="select failed: sql: Scan error on column index 15: converting driver.Value type <nil> ("<nil>") to a int32: invalid syntax" pid=11579 stack="[main.go:64 session.go:262 session.go:235 trade.go:117 actions_trade.go:80 actions_trade.go:34 base.go:126 actions_trade.go:39 base.go:53 main_generated.go:145 <autogenerated>:497 router.go:119 middleware.go:88 server.go:1942 throttler.go:64 server.go:1942 cors.go:190 server.go:1942 options.go:70 server.go:1942 middleware_recover.go:27 server.go:1942 middleware_request_metrics.go:19 timer.go:212 middleware_request_metrics.go:20 server.go:1942 middleware_logger.go:33 server.go:1942 xff.go:64 server.go:1942 middleware_context.go:22 server.go:1942]"

@nullstyle
Copy link
Contributor Author

Okay, so it looks like the issue is the history.Trade struct's PriceD and PriceN are not compatible with null columns coming from the db.

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

No branches or pull requests

1 participant