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

Invalid path: GCP deployment #18

Open
PatrickAlphaC opened this issue May 24, 2020 · 1 comment
Open

Invalid path: GCP deployment #18

PatrickAlphaC opened this issue May 24, 2020 · 1 comment

Comments

@PatrickAlphaC
Copy link

Hi Jonny,

I'm testing this with deployment to the GCP, I'm running into an issue when testing:

{ "jobRunId": "1234", "data": { "base": "BTC", "quote": "USD" }}

And the response I get it:

{"jobRunId":"1234","status":"errored","error":"Invalid path","pending":false,"data":{"base":"BTC","quote":"USD"}}

Running locally and testing with a curl command seems to work perfectly.

@PatrickAlphaC
Copy link
Author

I got it. I can't say my go skills are good enough to fix it, but if you swap the Path in the func Opts() in bridge.go to "/", you can deploy to the GCP without any problems.

func (ap *AssetPrice) Opts() *bridges.Opts {
	return &bridges.Opts{
		Name:   "Asset Price",
		Lambda: true,
		Path:   "/",
	}
}

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