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

Error message "could not connect to server" is misleading in case of server error #990

Open
Cat-Lord opened this issue Sep 5, 2022 · 4 comments

Comments

@Cat-Lord
Copy link

Cat-Lord commented Sep 5, 2022

When configuring a project I encountered a weird error. I don't know the suggested way of naming project but since it isn't the artifact name I though of naming it more 'commercially' using proper diacritics of my language. Pressing 'Generate' resulted in an 'Could not connect to server. Please check your network.' error.

Edit: Tested with Firefox and Chrome.

Expected result: Correct project generation or an "Invalid name " error within the form.

Actual result: "Could not connect to server. Please check your network." popup error (see screenshot)

Sample input:
image

Error preview:
image

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 5, 2022
@snicoll snicoll transferred this issue from spring-io/initializr Sep 5, 2022
@wilkinsona
Copy link
Contributor

The error message is rather misleading as it isn't a connection failure but a server side error. Generating the project results in a 500 response from the server:

{
    "timestamp": "2022-09-05T14:39:37.471+00:00",
    "status": 500,
    "error": "Internal Server Error",
    "message": "Malformed input or input contains unmappable characters: MixérApplication.java",
    "path": "/starter.zip"
}

@snicoll
Copy link
Contributor

snicoll commented Sep 5, 2022

Perhaps we could split this in two, keeping this issue for improving the error message?

@wilkinsona
Copy link
Contributor

Yeah, I think that sounds good. It really is two separate problems.

@snicoll snicoll changed the title Using UNICODE characters results in a network error Error message "could not connect to server" is misleading in case of server error Sep 6, 2022
@snicoll snicoll added type: enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 6, 2022
@ZenaAssamman

This comment was marked as off-topic.

@oodamien oodamien removed their assignment Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants