Comments (5)
Hi @shenjiayu ,
Can you provide more detail about Uncaught SyntaxError: missing ) after argument list
? If you can provide a filename, line number will be great.
from laravel-swoole.
Hi @shenjiayu ,
Ok, I think I understand what your title is talking about. However, Uncaught SyntaxError: missing ) after argument list
is a js error shown on the console, but I can't find any error on PHP side.
from laravel-swoole.
@albertcht Yes, It occurred on front-end. Last time I saw the similar issue was using the nginx container in docker-machine which required to set sendfile off;
in nginx config.
But this time, I just started the server by running php artisan swoole:http start
without using nginx as the ingress.
Could you reproduce the error on your side?
Laravel Version: 5.6
laravel-swoole: latest version
from laravel-swoole.
Hi @shenjiayu ,
Yes, the same js error happens on my side. I'm curious about the reason causing this error as well.
from laravel-swoole.
Hi @shenjiayu ,
Yes, the reason causing this issue is sendfile
, Swoole server uses same sendfile
kernel function to send files. But not sure why sendfile
causes a js exception.
The better solution will be using Nginx to process static files (with sendfile
off), and Swoole only process non-static requests.
from laravel-swoole.
Related Issues (20)
- WARNING Server::check_worker_exit_status(): worker(pid=690, id=14) abnormal exit, status=0, signal=9
- Routes file changes not picked up until I restart my Docker container HOT 1
- [question] does this support mysql persistent connection or mysql connection pooling HOT 1
- Hot reload not working HOT 2
- Swoole Kill Process Without Waiting For Http Call
- How did I know swoole is succefull applied on my environment HOT 1
- streamDownload not working and sometimes also throw "allowed memory size ... exhausted" HOT 2
- high latency after loop
- can a controller run out swoole HOT 1
- Err in line 8 of tests/fixtures/bootstrap/app.php
- Auth user problem on web socket connection HOT 1
- auth user class redis not fund
- [Question] How to change default base_path so file upload $directory will be default on public folder rather than the root laravel folder? HOT 2
- Socket.io client not work with Websockets implementation out of box
- timer
- 调用chatgpt的流式响应输出有问题 HOT 1
- 为什么在使用websocket服务时,触发on connect回调的时候发送消息给指定userid的人,自己也会收到消息 HOT 1
- facades are not safe to use inside coroutine for sure in this package. HOT 1
- swoole HOT 1
- 响应时间较长的接口出现504或者502,后台程序则依然正常执行
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-swoole.