Skip to content

🐛 Bug Report: Presence of x-apprwite-warning header causes output corruption #44

@maglnet

Description

@maglnet

👟 Reproduction steps

We experienced an issue today:

When using Appwrite\Services\Databses->listDocuments the API returns an x-apprwite-warning header containing the following message: this route is deprecated. see the updated documentation for improved compatibility and migration details.

Because of this line, the warning is directly sent to the output stream and breaks other outputs:
https://github.com/appwrite/sdk-for-php/blob/main/src/Appwrite/Client.php#L265

👍 Expected behavior

The library should not output warnings directly to the output stream, but should us a logging mechanism.

👎 Actual Behavior

See above / Reproduction Steps.

🎲 Appwrite version

Version 0.10.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions