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

contracts.go ->Invalid Syntax #2

Open
IPFR33LY opened this issue Sep 19, 2018 · 2 comments
Open

contracts.go ->Invalid Syntax #2

IPFR33LY opened this issue Sep 19, 2018 · 2 comments

Comments

@IPFR33LY
Copy link

Consistenting, while running the Marketwatch container. It will come up with the following in it's logs.

This is from today,

eve-marketwatch: 2018/09/19 17:09:22 esiTransport.go:78: St: 502 Res:  Tok:  - https://esi.evetech.net/v1/contracts/public/items/136827670/
eve-marketwatch: 2018/09/19 17:09:24 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:09:32 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:09:38 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:03 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:03 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:03 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:04 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:04 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:05 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:05 contracts.go:186: strconv.Atoi: parsing "": invalid syntax
eve-marketwatch: 2018/09/19 17:12:07 contracts.go:186: strconv.Atoi: parsing "": invalid syntax

After accessing that ESI endpoint from a browser, I get the following.

[{"is_included":true,"item_id":1025714308388,"quantity":1,"record_id":2708153534,"type_id":3186},{"is_included":true,"item_id":1025714308384,"quantity":1,"record_id":2708153535,"type_id":3186},{"is_included":true,"item_id":1025713939572,"quantity":1,"record_id":2708153536,"type_id":29011},{"is_included":true,"item_id":1025722496436,"quantity":1,"record_id":2708153537,"type_id":29009},{"is_included":true,"item_id":1025713939563,"quantity":2500,"record_id":2708153538,"type_id":12787},{"is_included":true,"item_id":1025677220321,"quantity":2,"record_id":2708153539,"type_id":29001},{"is_included":true,"item_id":1025714308392,"quantity":1,"record_id":2708153540,"type_id":3186},{"is_included":true,"item_id":1018580950677,"quantity":1,"record_id":2708153541,"type_id":6160},{"is_included":true,"item_id":1025713939538,"quantity":1,"record_id":2708153542,"type_id":2048},{"is_included":true,"item_id":1025677219788,"quantity":2,"record_id":2708153543,"type_id":28999},{"is_included":true,"item_id":1025713939552,"quantity":1,"record_id":2708153544,"type_id":33900},{"is_included":true,"item_id":1025713939577,"quantity":1,"record_id":2708153545,"type_id":1335},{"is_included":true,"item_id":1025714308367,"quantity":1,"record_id":2708153546,"type_id":1335},{"is_included":true,"item_id":1025714308382,"quantity":1,"record_id":2708153547,"type_id":3186},{"is_included":true,"item_id":1025713939548,"quantity":2500,"record_id":2708153548,"type_id":12791},{"is_included":true,"item_id":1025713939578,"quantity":1,"record_id":2708153549,"type_id":2456},{"is_included":true,"item_id":1025714308371,"quantity":1,"record_id":2708153550,"type_id":1335},{"is_included":true,"item_id":1025713939547,"quantity":2,"record_id":2708153551,"type_id":2185},{"is_included":true,"item_id":1025714308369,"quantity":1,"record_id":2708153552,"type_id":1335},{"is_included":true,"item_id":1025713939555,"quantity":1,"record_id":2708153553,"type_id":10190},{"is_included":true,"item_id":1025713939573,"quantity":2,"record_id":2708153554,"type_id":2446},{"is_included":true,"item_id":1025714308393,"quantity":1,"record_id":2708153555,"type_id":3186},{"is_included":true,"item_id":1025713939569,"quantity":1,"record_id":2708153556,"type_id":3186},{"is_included":true,"item_id":1025714308374,"quantity":1,"record_id":2708153557,"type_id":1335},{"is_included":true,"item_id":1025714308366,"quantity":1,"record_id":2708153558,"type_id":10190},{"is_included":true,"item_id":1025713939580,"quantity":1,"record_id":2708153559,"type_id":1978},{"is_included":true,"item_id":1025714308359,"quantity":1,"record_id":2708153560,"type_id":33900},{"is_included":true,"item_id":1025714308383,"quantity":1,"record_id":2708153561,"type_id":3186},{"is_included":true,"item_id":1025713939541,"quantity":1,"record_id":2708153562,"type_id":641},{"is_included":true,"item_id":1025713939598,"quantity":1,"record_id":2708153563,"type_id":4383},{"is_included":true,"item_id":1025713977549,"quantity":1,"record_id":2708153564,"type_id":6173},{"is_included":true,"item_id":1025714308362,"quantity":1,"record_id":2708153565,"type_id":33900}]

I'm not much of a golang guy but thought I might post this in hopes that it helps.

@antihax
Copy link
Owner

antihax commented Sep 19, 2018

I missed checking an error above. It is a harmless error due to the 502 from ESI; it is looking for the x-pages header (which is not there) and fails to parseInt and restarts the loop.

@antihax
Copy link
Owner

antihax commented Sep 22, 2018

I made a couple of changes. Let me know if this is persisting for you.

When CCP resolved the issues with the contract limit it looks like we are receiving a lot of expired contracts due to the gap in cache times. I added a clause to ignore these for now.

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

2 participants