Coder Social home page Coder Social logo

Comments (5)

albertcht avatar albertcht commented on July 28, 2024

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.

albertcht avatar albertcht commented on July 28, 2024

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.

shenjiayu avatar shenjiayu commented on July 28, 2024

@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.

albertcht avatar albertcht commented on July 28, 2024

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.

albertcht avatar albertcht commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.