Giter Club home page Giter Club logo

eve-quartermaster's People

Contributors

lunemec avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

eve-quartermaster's Issues

Bot failing after initial token expires

Howdy, I'm running the 1.03 bot on my server (ubuntu 18.04) and running into a problem where the the bot works initially after I start it, but then doesn't seem to be able to get a new access token appropriately.

This is my ExecStart on my systemd job (with secret values changed ofc)

ExecStart=/srv/quartermaster/eve-quartermaster run -s '9' --discord_auth_token='9' --discord_channel_id='9' --eve_client_id="9" --eve_sso_secret="9" --corporation_id='9' --alliance_id='9' --notify_interval='48h'

I'm seeing this in my logs:

{"error": "unable to load contracts: error calling ESI API: error getting token", "errorVerbose": "error getting token
github.com/lunemec/eve-quartermaster/pkg/token.(*source).Token
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/token/source.go:44
github.com/antihax/goesi/esi.(*APIClient).prepareRequest
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/antihax/[email protected]/esi/client.go:350
github.com/antihax/goesi/esi.(*ContractsApiService).GetCorporationsCorporationIdContracts
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/antihax/[email protected]/esi/api_contracts.go:1259
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).loadContracts
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:292
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).reportMissing
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:182
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).runForever
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:128
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).Bot
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:112
github.com/lunemec/eve-quartermaster/cmd.runBot
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/cmd/run.go:100
github.com/spf13/cobra.(*Command).execute
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:960
github.com/spf13/cobra.(*Command).Execute
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/lunemec/eve-quartermaster/cmd.Execute
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/cmd/root.go:52
main.main
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/main.go:6
runtime.main
	/opt/homebrew/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255
runtime.goexit
	/opt/homebrew/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581
error calling ESI API
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).loadContracts
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:294
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).reportMissing
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:182
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).runForever
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:128
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).Bot
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:112
github.com/lunemec/eve-quartermaster/cmd.runBot
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/cmd/run.go:100
github.com/spf13/cobra.(*Command).execute
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:960
github.com/spf13/cobra.(*Command).Execute
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/lunemec/eve-quartermaster/cmd.Execute
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/cmd/root.go:52
main.main
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/main.go:6
runtime.main
	/opt/homebrew/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255
runtime.goexit
	/opt/homebrew/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581
unable to load contracts
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).reportMissing
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:184
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).runForever
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:128
github.com/lunemec/eve-quartermaster/pkg/bot.(*quartermasterBot).Bot
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/pkg/bot/bot.go:112
github.com/lunemec/eve-quartermaster/cmd.runBot
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/cmd/run.go:100
github.com/spf13/cobra.(*Command).execute
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:960
github.com/spf13/cobra.(*Command).Execute
	/Users/lulu/Documents/git/Go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/lunemec/eve-quartermaster/cmd.Execute
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/cmd/root.go:52
main.main
	/Users/lulu/Documents/git/Go/src/github.com/lunemec/eve-quartermaster/main.go:6
runtime.main
	/opt/homebrew/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255
runtime.goexit
	/opt/homebrew/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581"}

Process finished with exit code 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.