dopcpc9207 2018-05-12 12:33
浏览 80

500内部错误Laravel,通过websocket守护进程获取图像

I have a chat daemon running on Laravel project.

If I try to send to the client from a server a string, which contains HTML, I get 500 error (not 404, the file exists. Here is a example of a string

<img src="{{ asset('path/to/img.png') }}">

Here is the error I got in PHP logs:

request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecursion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.

Again: If I echo this string in client (view), it will be ok, but if I get it like a message (to client from server) I get an error.

  • 写回答

1条回答 默认 最新

  • doushun1870 2018-05-15 13:12
    关注

    Solved. The function asset() returned a url like this:

    http://localhost/path/to/img.png 
    

    The problem was in missing port. I edited my .env file and changed the base url

    from

    http://localhost 
    

    to

    http://localhost:8000
    
    评论

报告相同问题?

悬赏问题

  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥20 jupyter保存图像功能的实现
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键