microsoft / vscode-spring-initializr

VSCode Extension for Spring Initializr
Other
70 stars 35 forks source link

create maven project error #128

Open saint2014 opened 5 years ago

saint2014 commented 5 years ago

Fail to create a project. Error: Unexpected token < in JSON at position 0

saint2014 commented 5 years ago

can't select springboot version

doubledevwp commented 5 years ago

This is happening to me when trying to create a new project as well.

Is there a certain order or way to create the new project? My process when trying to do this to test it out:

  1. Open VS Code
  2. CTRL+SHIFT+P to open the Command Palette
  3. Type in Spring Initializr and select the Maven Project option
  4. Select Java
  5. Keep Group Id as "com.example"
  6. Keep "demo" as the Artifact Id
  7. Crashes with the error provided by @saint2014

E2C6072C-943A-4FC1-AA50-7887B972608B

Eskibear commented 5 years ago

Error: Unexpected token < in JSON

It should be probably networking issue. html content is returned by the server instead of JSON string, leading to the parsing error.

ramya-ramesh commented 5 years ago

crashes after entering the artifact Id with error : Fail to create a project. Error: write EPROTO 2859550504:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_record.cc:242:

SvenST89 commented 2 years ago

Hi community! I am encountering similar issues with starting up a maven project. Initially I had version 0.8.0 installed and received the error message that the metadata couldn´t get fetched. Then by this issue here #162 I resolved the problem by lowering the version to 0.4.8. But now, I am running into the following error: image

I think it is a proxy problem as I am working within my company´s network (at home via vpn). But so far I could not figure out how to get it up and running. I even added the proxy to the settings.json file in the extension settings.

Has anybody an idea how I could fix this?

In advance many thanks for your understandings and your efforts!