Open mybugatti opened 4 months ago
@mybugatti I am facing same kind of issue, can you please see the network tab and paste the URL.
After upgrading to V18: When loadOnInitialization: true SegmentModule.forRoot({ apiKey: environment.KEY, debug: false, loadOnInitialization: true }),
WRONG API call happening: http://localhost:7001/cdn.segment.com/v1/projects/KEY/settings
API call should be: https://cdn.segment.com/v1/projects/KEY/settings
Issue:
Bug Report or Feature Request (mark with an
x
)OS and Version?
OS: macOS 14.5
Generator Version
v18.0.1
Tools Version
Targeted Angular version
Repro steps.
https://github.com/mybugatti/ngx-segment
The log given by the failure.
Unexpected token '<', "<!DOCTYPE "... is not valid JSON SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Desired functionality.
No error
Mention any other details that might be useful.