Skip to content

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

Open
@qinyiwei1

Description

@qinyiwei1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions