Skip to content

fix: handle non-JSON error message in submit 400 response - #57

Merged
caroolcanelas2 merged 2 commits into
masterfrom
fix/handle-non-json-error-message
Aug 24, 2026
Merged

fix: handle non-JSON error message in submit 400 response#57
caroolcanelas2 merged 2 commits into
masterfrom
fix/handle-non-json-error-message

docs: add changelog entry for non-JSON 400 handling

b0e9650
Select commit
Loading
Failed to load commit list.
DK CICD / cli-plugin-submit-node-ci-v2-hre5p8va-scan succeeded Aug 24, 2026 in 1m 12s

cli-plugin-submit-node-ci-v2-hre5p8va-scan

Progress summary:

Step Status
create-project-at-sonarcloud 🟢 completed
scan 🟢 completed

⚠️ A completed status for an individual step simply indicates it completed. Errors might have happened: check the overall status of the Check Run and, if necessary, the logs below.

Details

Runner: node-ci-v2-hre5p8va-scan-pod

create-project-at-sonarcloud logs (access task pipeline | access task only)

fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
v3.17.10-130-g4735b031de2 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
v3.17.10-127-g3518e0bee31 [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
OK: 17833 distinct packages available
(1/5) Installing ca-certificates (20240226-r0)
(2/5) Installing brotli-libs (1.0.9-r9)
(3/5) Installing nghttp2-libs (1.51.0-r2)
(4/5) Installing libcurl (8.9.0-r0)
(5/5) Installing curl (8.9.0-r0)
Executing busybox-1.35.0-r29.trigger
Executing ca-certificates-20240226-r0.trigger
OK: 301 MiB in 50 packages
Creating project at self-hosted SonarQube
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   186    0   132  100    54   5836   2387 --:--:-- --:--:-- --:--:--  8454
Project created: {"errors":[{"msg":"Could not create Project with key: \"cli-plugin-submit\". A similar key already exists: \"cli-plugin-submit\""}]}
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   136    0     0  100   136      0   6117 --:--:-- --:--:-- --:--:--  6181
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   217    0   217    0     0  12739      0 --:--:-- --:--:-- --:--:-- 13562
Project bind success: {"key":"Sonar - Workflows","alm":"github","repository":"vtex/cli-plugin-submit","url":"https://api.github.com","summaryCommentEnabled":true,"monorepo":false,"repositoryUrl":"https://github.com/vtex/cli-plugin-submit"}


scan logs (access task pipeline | access task only)

INFO: 18/18 source files have been analyzed for the text and secrets analysis
INFO: Sensor TextAndSecretsSensor [text] (done) | time=375ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=4ms
INFO: ------------- Gather SCA dependencies on project
INFO: Dependency analysis skipped
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 2 source files to be analyzed
WARN: Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'.
INFO: SCM Publisher 0/2 source files have been analyzed (done) | time=3ms
WARN: Missing blame information for the following files:
WARN:   * src/lib/constants/Messages.ts
WARN:   * src/modules/submit.ts
WARN: This may lead to missing/broken features in SonarQube
INFO: CPD Executor 2 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 4 files
INFO: CPD Executor CPD calculation finished (done) | time=5ms
INFO: SCM revision ID 'b0e9650a1fad981da778634974270e9469230c02'
INFO: SCM writing changed lines
WARN: No merge base found between HEAD and refs/heads/master
INFO: SCM writing changed lines (done) | time=6ms
INFO: Analysis report generated in 65ms, dir size=283.9 kB
INFO: Analysis report compressed in 14ms, zip size=38.7 kB
INFO: Analysis report uploaded in 53ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://sonarqube.vtex.systems/dashboard?id=cli-plugin-submit&pullRequest=57
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://sonarqube.vtex.systems/api/ce/task?id=3fb1cf34-f877-406c-80f2-6a0cf116cbed
INFO: Analysis total time: 16.684 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 18.277s
INFO: Final Memory: 16M/80M
INFO: ------------------------------------------------------------------------