lunemec / eve-quartermaster Goto Github PK
View Code? Open in Web Editor NEWThis is a discord bot that will keep you updated about your current doctrine ship stock listed on contracts.
License: GNU General Public License v3.0
This is a discord bot that will keep you updated about your current doctrine ship stock listed on contracts.
License: GNU General Public License v3.0
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.