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

front: bump playwright from 1.43.1 to 1.50.1 #10986

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Maymanaf
Copy link
Contributor

@Maymanaf Maymanaf commented Mar 3, 2025

Playwright's APIRequestContext is encountering an unexpected response format, leading to this error:

Error: apiRequestContext.delete: Parse Error: Expected HTTP/
    Call log:
      - → DELETE http://localhost:4000/api/projects/3
        - user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.6943.16 Safari/537.36
        - accept: */*
        - accept-encoding: gzip,deflate,br
      - ← 204 No Content
        - access-control-allow-origin: *
        - vary: origin, access-control-request-method, access-control-request-headers, Origin, Access-Control-Request-Method, Access-Control-Request-Headers
        - date: Mon, 03 Feb 2025 18:50:23 GMT


       at utils/api-setup.ts:103

Using curl I get this response :

 curl -i -X DELETE 'http://localhost:4000/api/projects/1'
HTTP/1.1 204 No Content
vary: origin, access-control-request-method, access-control-request-headers, Origin, Access-Control-Request-Method, Access-Control-Request-Headers
access-control-allow-origin: *
date: Mon, 03 Mar 2025 16:24:48 GMT

with Postman the DELETE is done but I receive an error :

image

Error: Parse Error: Expected HTTP/
Request Headers
User-Agent: PostmanRuntime/7.43.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 489cd4a8-1016-400e-a81e-feeb1ea0d95f
Host: localhost:4000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

it's mostly related to server response anomalies and Playwright's HTTP parsing strictness

Closes #10093

@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Mar 3, 2025
@Maymanaf Maymanaf marked this pull request as ready for review March 3, 2025 12:33
@Maymanaf Maymanaf requested review from a team as code owners March 3, 2025 12:33
@Maymanaf Maymanaf requested review from Yohh and Math-R March 3, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bump playwright from 1.43.1 to the last version
1 participant