Skip to content

This method cannot be used in the rewrite phase. Kong.service.request.set_path(path) #14404

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

Open
1 task done
qinyiwei1 opened this issue Apr 7, 2025 · 1 comment
Open
1 task done

Comments

@qinyiwei1
Copy link

qinyiwei1 commented Apr 7, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3.8

Current Behavior

An error occurs when using Kong.service.request.set_path(path) in the rewrite phase, but the documentation at https://docs.konghq.com/gateway/3.8.x/plugin-development/pdk/kong.service.request/#kongservicerequestset_pathpath says it can be used. What is the correct way to modify the path in the rewrite phase?

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

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