When I try to submit my solution, I get the following errors on two different Debian 12 clients:
-----------------------------------------------------------
**xxx@box:~/exercism/rust/reverse-string$** exercism submit
Error: expected response with Content-Type "application/json" but got status "400 Bad Request" with Content-Type "application/json; charset=utf-8"
-----------------------------------------------------------
According to the forum search, the problem only affects me.
Does anyone have any hints for me on what I am doing wrong or need to do to make it work?
Troubleshooting Information
===========================
Version
----------------
Current: 3.5.6
Latest: 3.5.6
Operating System
----------------
OS: linux
Architecture: amd64
Configuration
----------------
Home: /home/xxx
Workspace: /home/xxx/exercism
Config: /home/xxx/.config/exercism
API key: 1f9c*****************************283
API Reachability
----------------
GitHub:
* https://api.github.com
* [connected]
* 11.22704ms
Exercism:
* https://api.exercism.org/v1/ping
* [connected]
* 195.089417ms
-----------------------------------------------------------
@IsaacG in your CLI change (dunno if relevant!) did you account for content-type header including key-value parameters such as charset? I skimmed over it and thought you did an inclusion check, so it should be fine, but may be worth to double-check.
@miromoto can you give use the output of ls -ln1? The error says the request is not in a correct format (we canβt see what exactly is wrong because the error message is not expanded), but we may be able to deduce it by figuring out what itβs trying to submit.
By giving us the directory contents (ls), we can compare it with the rust trackβs configuration for the reverse-string exercise and see what the CLI is supposed to submit.
xxx@box:~/exercism/rust/reverse-string/.exercism$ ls -lash
total 16K
4.0K drwxr-xr-x 2 toni toni 4.0K Jul 14 12:28 .
4.0K drwxr-xr-x 6 toni toni 4.0K Jul 14 12:28 ..
4.0K -rw-r--r-- 1 toni toni 726 Jul 14 12:28 config.json
4.0K -rw------- 1 toni toni 211 Jul 14 12:28 metadata.json