When the token contains a '/', we encounter a 'bad/illegal format' error.

Rithesh Mahesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2023

When the token contains a '/', we encounter a 'bad/illegal format' error. How can we handle this situation or modify the token to prevent this error?

Error 

1fatal: unable to access 'https://{{user_name}}:ABCDEFG/123kdndfor+@stash.xyz.com/stash/{{project_name}}/{{repo_name}}.git/': URL using bad/illegal format or missing URL

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 31, 2023

Hi Ritesh,

Have you tried using %2F in place of the slash?

Cheers,
Christian

Premier Support Engineer
Atlassian

Denis Shalaev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2025

I have the same issue.

%2F
 doesn't help:
```
Cloning into 'mybucket'...
remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/myproject/mybucket.git/'
```

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events