Comments (11)
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.
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.
Odd, I can't recreate this...
from laravel-web-tinker.
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.
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:
- Created an empty Laravel applicaiton
- Added a few models and handlers
- Ran the
composer require
command for this package} - Ran the 'install' command for this package
- Opened /tinker
- Entered some code
- 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.
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.
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.
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.
@plunkettscott Then I must be having a different problem than you. My instance cannot even solve 1+1
.
from laravel-web-tinker.
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.
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)
- Dark Theme not working in Nova iframe HOT 1
- Doesn't work behind a reverse proxy
- support laravel 8 HOT 1
- Encoding issues with Laravel 6
- PHP 8 support HOT 1
- Ctrl+Enter not working
- echo not working in whileloop
- Fallback
- Lumen Support HOT 2
- tinker url shows 403 forbidden HOT 1
- how to fixed this " insecure XMLHttpRequest"? HOT 2
- Uncaught (in promise) Error: Network Error HOT 4
- 500 Internal Server Error Laravel Web Tinker HOT 1
- Unchecked runtime.lastError HOT 1
- Unchecked runtime.lastError HOT 1
- shortcut for commenting line of code with "ctrl + /"
- 'null' file created in public folder HOT 1
- error after composer update HOT 1
- Error after update HOT 3
- Console outputs: INFO Ctrl + D HOT 2
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-web-tinker.