Skip to content
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

# Bug Report: Encoding Version Changes on Server Overload #2135

Closed
allglenn opened this issue Aug 27, 2024 · 2 comments
Closed

# Bug Report: Encoding Version Changes on Server Overload #2135

allglenn opened this issue Aug 27, 2024 · 2 comments

Comments

@allglenn
Copy link

Description

We are running an Express API within a Docker container, serving both iOS and Android applications as clients. We've observed that under a high load of requests, the server automatically changes its encoding settings, leading to the appearance of unexpected characters on the server side. This encoding issue has caused our iOS mobile application to crash.

Environment

  • API Framework: Express
  • Containerization: Docker
  • Server Version: 22.7.0-alpine
  • Client Applications: iOS and Android apps

Current Behavior

When the server experiences a high load, it automatically switches its encoding, resulting in malformed characters. This issue has led to instability and crashes in the iOS client application.
Screenshot 2024-08-26 at 22 26 27

Expected Behavior

The server should maintain consistent encoding settings regardless of the load, ensuring stable and correct data transmission to the client applications.

Steps to Reproduce

  1. Run the API in a Docker container using the 22.7.0-alpine image.
  2. Simulate a high load of requests from both iOS and Android clients.
  3. Observe the encoding changes and resulting errors on the server.

Temporary Fix

We temporarily reverted to an LTS Alpine version of the Docker image, which resolved the issue and stabilized the encoding.

Possible Solution

A permanent solution may involve ensuring that the server's encoding settings are locked or managed more robustly to prevent automatic changes under load. It could also be beneficial to investigate whether specific configurations in the 22.7.0-alpine image are contributing to this behavior.

Additional Information

Further investigation is needed to pinpoint the exact cause of the encoding switch and to develop a more robust solution that can handle high loads without affecting the server's stability or the integrity of data sent to clients.

@Nicd
Copy link

Nicd commented Aug 27, 2024

From an outsider's perspective, looks related to nodejs/node#54543

@nschonni
Copy link
Member

Thanks @Nicd !
Closing as this is an upstream issue. Nothing in this repo can address that issue

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

3 participants