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] Using a / in an Environment Name causes error #1761

Open
christopher-nash opened this issue Mar 11, 2024 · 2 comments · May be fixed by #2214
Open

[Bug] Using a / in an Environment Name causes error #1761

christopher-nash opened this issue Mar 11, 2024 · 2 comments · May be fixed by #2214
Labels
bug Something isn't working

Comments

@christopher-nash
Copy link

I ran into this while attempting to import a Postman Environment. I had an environment I called "Beta / Staging" in Postman which would result in an An error occurred while importing the environment. After some experimenting with the json I removed the / character and it imported fine.

To reproduce:

  1. Click Configure for the environments
  2. Click + Create
  3. Set the Environment Name to Some / Thing (any name which includes a / will cause the error)
  4. Click the Create button
  5. Note the error An error occurred while created the environment is displayed

Setting the environment to include other special characters such as ~ or = or even \ works fine. It only appears to happen with /.

I tried looking in the developer console and I don't see any errors showing up there. I'm not sure where to go looking for generated log files that might give additional details on the actual error root cause.

@christopher-nash christopher-nash changed the title Using a / in an Environment Name causes error [Bug] Using a / in an Environment Name causes error Mar 12, 2024
ialloyd added a commit to ialloyd/bruno that referenced this issue Mar 14, 2024
@leeclarke
Copy link

I encountered the same issue with a colon as well in the title. Snippet of the environment file I was trying to import:
I edited the file and removed the the ":" and it imported to verify it was the colon

{
	"id": "af02b0ad-2048-1f15-b544-e8011d2e0ca7",
	"name": "3: CAT",
	"values": [
		{
			"key": "base_url",
			"value": "https://example.com/",
			"enabled": true
		},
	 ]
}

@busy-panda
Copy link
Contributor

Fixed for any character not allowed in filenames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants