You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When running the Estuary set-up (back- and front- end) on dev environment there seems to be an issue with the ‘View Performance Dashboard’ at http://localhost:4444/ecosystem
Steps to reproduce the issue
Once estuary node is installed, run the following command to start the backend: ./estuary --logging --verified-deal=true
Then run the following commend to start the front-end npm run dev
Additional information
When using the API call curl -X GET -H "Authorization: Bearer EST1e089cb2-7eae-4b62-a18d-a0f2b31053e2ARY" http://localhost:3004/public/stats here´s what I've got: {"totalStorage":2019768358,"totalFiles":3,"dealsOnChain":0}
Components INFO estuary estuary/main.go:501 estuary version: v0.1.0-25-g01032e9 {"app_version": "v0.1.0-25-g01032e9"}
A potential fix will be across Estuary and Estuary-www
On Estuary, there should be a way in GORM to catch scan errors. It has something to do with converting Null to int64. Hence, handling the exception and returning an empty JSON response.
// handler.go line 3767iferr:=s.DB.Table("objects").Select("SUM(size)").Find(&stats.TotalBytesUploaded.Int64).Error; err!=nil {
returnnil, err
}
on Estuary-www
The ideal fix will be to have a default view when empty or handle timeout when there is no response.
What I have is an empty response for /public/stats. An authorization header isn't required since it's a public route.
curl -X GET http://localhost:3004/public/stats
curl: (52) Empty reply from server
Description
When running the Estuary set-up (back- and front- end) on dev environment there seems to be an issue with the ‘View Performance Dashboard’ at http://localhost:4444/ecosystem
Steps to reproduce the issue
./estuary --logging --verified-deal=true
npm run dev
Additional information
When using the API call
curl -X GET -H "Authorization: Bearer EST1e089cb2-7eae-4b62-a18d-a0f2b31053e2ARY" http://localhost:3004/public/stats
here´s what I've got:{"totalStorage":2019768358,"totalFiles":3,"dealsOnChain":0}
Components
INFO estuary estuary/main.go:501 estuary version: v0.1.0-25-g01032e9 {"app_version": "v0.1.0-25-g01032e9"}
> [email protected] dev
The text was updated successfully, but these errors were encountered: