The error points are different and the solutions are different. Use them after understanding
Recently, I was working on a personal blog. There was a music box function that called the API of Netease cloud music.
Agent configured in Vue
There is no problem with the local NPM run serve
But after packing in nginx
The API of the agent will report 404
terms of settlement:
Configuration in nginx.config
location /music/ {
proxy_pass http://39.108.136.207:3000/;
}
Pit point:
proxy_ Pass cannot be placed directly on the IP + port
Additional and/or corresponding methods are required
Read More:
- The Vue parent component uses ref to call the sub component method and reports an error
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- HTML method IE8 reports an error, IE8 jQuery Ajax obtains static resources reports an error, typeerror denies access
- The echots in Vue reports an error. After obtaining the DOM element, the chart can be displayed. The console still reports an error
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- [actual record of Android stepping on the pit] Android studio reports an error invalid gradle JDK configuration found after importing the project
- When websocket transmits JSON text, the parse method reports an error
- Vue Alain startup command yarn serve reports an error
- Vue reports an error sasserror: expected newline
- Vue console reports an error duplicate keys detected: ‘XXXX’. This may cause an update error. Solution
- Spock + powermock simulation static method reports an error java.lang.classcastexception
- Vue introduces ecarts, init initializes and reports an error
- Vue router click the menu bar and the same module reports an error Vue router.esm.js? 2215:2065 Uncaught (in promise) Error
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- Vue executes NPM run Dev and reports an error: missing script: dev
- Vue install reports an error operation not allowed
- Vue + TS reports an error after configuring the path alias
- Vue project reports an error on ie11 white screen. Script1002: syntax error
- Vue references echats and reports an error initialize failed: invalid DOM