GithubHelp home page GithubHelp logo

Comments (11)

thezahedi avatar thezahedi commented on July 17, 2024 1

No response after Ctrl+Enter

@danvim changed from local server (php artisan serve) to virtual host, worked for me on Ubuntu / Nginx

I changed the path config from /tinker to tinker and virtual host works for me.

from laravel-web-tinker.

giovanniledda avatar giovanniledda commented on July 17, 2024

Same for me, I'm noticing this error on console:

base.js?20190820:335 Uncaught (in promise) TypeError: url.substr is not a function at XMLHttpRequest.open (base.js?20190820:335) at app.js?id=9ffda6021a5b8ba56507:1 at new Promise (<anonymous>) at e.exports (app.js?id=9ffda6021a5b8ba56507:1) at e.exports (app.js?id=9ffda6021a5b8ba56507:1)

...every time I click "CTRL+ENTER".

from laravel-web-tinker.

freekmurze avatar freekmurze commented on July 17, 2024

Odd, I can't recreate this...

from laravel-web-tinker.

mateusgalasso avatar mateusgalasso commented on July 17, 2024

I had this error every time I click "CTRL+ENTER"
"message": "touch(): Utime failed: Invalid argument",
"exception": "ErrorException",
"file": "C:\SGP-Laravel\vendor\psy\psysh\src\ConfigPaths.php",
"line": 233,

from laravel-web-tinker.

litvinjuan avatar litvinjuan commented on July 17, 2024

Hey @freekmurze. Same thing happening here, the error is same as stonkeep's:
local.ERROR: touch(): Utime failed: Invalid argument {"exception":"[object] (ErrorException(code: 0): touch(): Utime failed: Invalid argument at ~\\vendor\\psy\\psysh\\src\\ConfigPaths.php:233)

Steps I took were:

  1. Created an empty Laravel applicaiton
  2. Added a few models and handlers
  3. Ran the composer require command for this package}
  4. Ran the 'install' command for this package
  5. Opened /tinker
  6. Entered some code
  7. Pressed Ctrl+Enter

After that nothing happens and the error above gets logged.

Shall you need more info, hit me up

EDIT:
Weirdest of all is that the line indicated seems to be a comment :/

from laravel-web-tinker.

HeinHanekom avatar HeinHanekom commented on July 17, 2024

Getting same issue here:

[2019-08-23 15:08:09] local.ERROR: touch(): Utime failed: Invalid argument {"url":"http://127.0.0.1:8000/tinker","input":{"code":"$team = App\\Team::find(1);"},"exception":"[object] (ErrorException(code: 0): touch(): Utime failed: Invalid argument at C:\\Users\\Hein Hanekom\\PhpstormProjects\ ams\\vendor\\psy\\psysh\\src\\ConfigPaths.php:233) [stacktrace] #0 C:\\Users\\Hein Hanekom\\PhpstormProjects\ ams\\vendor\\sentry\\sentry\\src\\ErrorHandler.php(361): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'touch(): Utime ...', 'C:\\\\Users\\\\Hein H...', 233) #1 [internal function]: Sentry\\ErrorHandler->handleError(2, 'touch(): Utime ...', 'C:\\\\Users\\\\Hein H...', 233, Array) #2 C:\\Users\\Hein Hanekom\\PhpstormProjects\ ams\\vendor\\psy\\psysh\\src\\ConfigPaths.php(233): touch('nul') #3 C:\\Users\\Hein Hanekom\\PhpstormProjects\ ams\\vendor\\psy\\psysh\\src\\Configuration.php(376): Psy\\ConfigPaths::touchFileWithMkdir('nul') #4 C:\\Users\\Hein Hanekom\\PhpstormProjects\ ams\\vendor\\spatie\\laravel-web-tinker\\src\\Tinker.php(57): Psy\\Configuration->setHistoryFile('nul') #5 C:\\Users\\Hein Hanekom\\PhpstormProjects\

from laravel-web-tinker.

plunkettscott avatar plunkettscott commented on July 17, 2024

Also running into this. The errors seems to only happen when manipulating a Model in the console. At least that's the only time I get the 500 error on my end. For example, creating a record on a model:

This throws a 500:

Model::create(['test' => true]);

This outputs this-is-a-test like it should:

Str::slug('this is a test');

from laravel-web-tinker.

plunkettscott avatar plunkettscott commented on July 17, 2024

Also running into this. The errors seems to only happen when manipulating a Model in the console. At least that's the only time I get the 500 error on my end. For example, creating a record on a model:

This throws a 500:

Model::create(['test' => true]);

This outputs this-is-a-test like it should:

Str::slug('this is a test');

Ignore that above. It seems to be more specific to the create() method.

from laravel-web-tinker.

danvim avatar danvim commented on July 17, 2024

@plunkettscott Then I must be having a different problem than you. My instance cannot even solve 1+1.

from laravel-web-tinker.

ndeblauw avatar ndeblauw commented on July 17, 2024

Similar problem (laravel 5.8 on php 7.3.3), ctrl+enter does nothing

Went to look for reason and found two errors in console upon loading:

[/tinker]
Failed to load resource: the server responded with a status of 502 (Bad Gateway)

[/vendor/web-tinker/app.js?id=54675ea5df087610508e]
Uncaught (in promise) Error: Request failed with status code 502
at FtD3.e.exports (app.js?id=54675ea5df087610508e:1)
at e.exports (app.js?id=54675ea5df087610508e:1)
at XMLHttpRequest.d.onreadystatechange (app.js?id=54675ea5df087610508e:1)

A short while after pressing ctrl+enter, this error comes up (and my php crashes and needs a restart)

[/vendor/web-tinker/app.js?id=54675ea5df087610508e]
POST /tinker 504 (Gateway Time-out)

from laravel-web-tinker.

subdesign avatar subdesign commented on July 17, 2024

No response after Ctrl+Enter

@danvim changed from local server (php artisan serve) to virtual host, worked for me on Ubuntu / Nginx

from laravel-web-tinker.

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.