-
Notifications
You must be signed in to change notification settings - Fork 157
DispatchHttpCall from OnTick() results in runtime.nilPanic #201
Comments
@abhide thanks for reporting this, and this looks like a bug of SDK. Do you have any small reproducer I can use to investigate? |
@mathetake Thanks for getting back promptly. |
Another data point; I can see the first POST HTTP request from
|
I found a bug around on_tick and fixed in #202 but not sure this fixes your crash. Could you try this out by the followings? (the API has changed since your version but I hope the necessary change to your code is not big).
|
Thanks @mathetake. Your fix is working and I don't see nilPanic as before. Adding my teammate @bvandewalle |
OK just released v0.14.0 https://github.com/tetratelabs/proxy-wasm-go-sdk/releases/tag/v0.14.0 - thanks for reporting and testing the patch! Now closing issue. |
Amazing! Thanks for your fix @mathetake. |
PLEASE FILL IN THE FOLLOWINGS for EVERY ISSUE you make.
Describe the bug / error
I have a filter that processes HTTP requests and caches data about the request/response OnHttpStreamDone(). Then OnTick(); we process the data and POST it to an external endpoint.
This results in the following error
What is your Envoy/Istio version?
$ istioctl version
istiod version: 1.9.5
data plane version: 1.9.5
What is the SDK version?
0.3.0
What is your TinyGo version?
$ tinygo version
tinygo version 0.18.0 darwin/amd64 (using go version go1.16.5 and LLVM version 11.0.0)
URL or snippet of your code including Envoy configuration
Additional context (Optional)
The text was updated successfully, but these errors were encountered: