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

OASIS - Table response failed when decoding result #267

Closed
CodeBear801 opened this issue Apr 6, 2020 · 0 comments
Closed

OASIS - Table response failed when decoding result #267

CodeBear801 opened this issue Apr 6, 2020 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@CodeBear801
Copy link

CodeBear801 commented Apr 6, 2020

There are several issues when running place connectivity builder for entire US data

  • Timeout in the middle
    image

    • May be due to I use VPN, but changed max amount of destination from 1000 to 500 and such issue didn't happen any more.
  • While decoding float64 array in response, always met following issue

runtime error: invalid memory address or nil pointer dereference

Even when decoding at httpclient.Get still have such error

func (oc *osrmHTTPClient) send(req *request, c chan<- message) {
	resp, err := oc.httpclient.Get(req.url)
	glog.V(3).Infof("[osrmHTTPClient] send function succeed with request %s.\n" + req.url)
	m := message{req: req, resp: resp, err: err}
	c <- 

After I changed the definition of table.response from

type Response struct {
	Code         string               `json:"code"`
	Durations    [][]*float64          `json:"durations"`
	Distances    [][]*float64          `json:"distances"`
}

To

type Response struct {
	Code         string               `json:"code"`
	Durations    [][]float64          `json:"durations"`
	Distances    [][]float64          `json:"distances"`
}

I don't met such issue any more. I think it might related with timeout and only part of data be loaded.

CodeBear801 added a commit that referenced this issue Apr 6, 2020
@CodeBear801 CodeBear801 self-assigned this Apr 6, 2020
@CodeBear801 CodeBear801 added the Bug Something isn't working label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant