Skip to content

Issues with vanilla HttpErrorResponse  #188

Open
@erich5168

Description

@erich5168

Possible problem with the current vanilla repo? I have downloaded the repo and tried to run it through my terminal mvn spring-boot:run -Dserver.port=9000 but I got SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse error.

I initially thought it was my angular that was running an old version so I upgraded to the following, but still having the same issue...

Angular: 6.1.8
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.3
@angular-devkit/build-angular     0.8.3
@angular-devkit/build-optimizer   0.8.3
@angular-devkit/build-webpack     0.8.3
@angular-devkit/core              0.8.3
@angular-devkit/schematics        0.8.3
@angular/cli                      6.2.3
@ngtools/webpack                  6.2.3
@schematics/angular               0.8.3
@schematics/update                0.8.3
rxjs                              6.2.2
typescript                        2.9.2
webpack                           4.19.1

With futher research I found that "Unexpected token < in JSON" is indicating that the return object is html and not JSON. Is anyone having the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions