Git Product home page Git Product logo

Comments (6)

mathetake avatar mathetake commented on June 21, 2024
> envoy bug failure: !state_.local_complete_ || status == FilterHeadersStatus::StopIteration. Details: Filters should return FilterHeadersStatus::StopIteration after sending a local reply.

As you can see in the error, you MUST return ActionPause which can be translated to StopIteration in the host implementation. Could you try with that?

from proxy-wasm-go-sdk.

sp0cket avatar sp0cket commented on June 21, 2024

Yes, I tried this, And got the same errorenvoy bug failure: !state_.local_complete_ || status == FilterHeadersStatus::StopIteration. Details: Filters should return FilterHeadersStatus::StopIteration after sending a local reply.

func (ctx *httpHeaders) OnHttpRequestHeaders(numHeaders int, endOfStream bool) types.Action {
	proxywasm.SendHttpResponse(401, [][2]string{
		{"powered-by", "proxy-wasm-go-sdk!!"},
	}, "reject")
	return types.ActionPause
}

from proxy-wasm-go-sdk.

mathetake avatar mathetake commented on June 21, 2024

This has something to do with envoyproxy/envoy#14957 and proxy-wasm/proxy-wasm-cpp-host#95

from proxy-wasm-go-sdk.

sp0cket avatar sp0cket commented on June 21, 2024

So it seems like a bug, And I should wait until ABI has been release?

from proxy-wasm-go-sdk.

mathetake avatar mathetake commented on June 21, 2024

Actually, it's not an ABI issue at all but in Envoy's implementation detail.

from proxy-wasm-go-sdk.

mathetake avatar mathetake commented on June 21, 2024

fixed in envoyproxy/envoy#15496 and irrelevant to this SDK so I'm closing.

from proxy-wasm-go-sdk.

Related Issues (20)

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.