question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Octane - Wrong url

See original GitHub issue

Ziggy version

v1.4.0

Laravel version

v8.58

Description

ZiggyServiceProvider has a listener responsible to reset the state for current request and is setting the property generated to false, but the payload on the BladeRouteGenerator class is not changed so it returns the wrong url for the current request. This does not happen on 1.1.0, thats the version i am currently using

Ziggy call and context

//Octane listener
Event::listen(RequestReceived::class, function () {
    BladeRouteGenerator::$generated = false;
});

//BladeRouteGenerator, url it set on constructor
if (! static::$payload) {
    static::$payload = new Ziggy($group);
}

Ziggy configuration

Wrong url

Route definition

//

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tonysilva16commented, Sep 12, 2021

yeah, i see that know, i understood you were asking other thing… 🤣

0reactions
bakerkretzmarcommented, Sep 11, 2021

Okay so your app’s URL is not the same on every request 😅 I’ll work on a fix for this, we can probably still get away with caching most of the payload but you’re right the URL will have to not be persisted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PR11 | Wrong Server Version - OTOY Forums • View topic
Hello, I downloaded both, the new PR11 Blender, and the respective Octane Server PR11 for OSX METAL + Big Sur. When launching the...
Read more >
634067 - incorrect octane url for in testcase - Monorail
octane test fails to run because the URL changed. What went wrong? octane url changed to http://chromium.github.io/octane/
Read more >
Troubleshooting - ADM Help Centers - Micro Focus
This section contains troubleshooting suggestions for issues relating to the ALM Octane installation. You can also check the log here: /opt/octane/log.
Read more >
Hey! I've got a huge problem with my Octane license and ...
I've got 2 licenses of Octane Standalone and Octane C4D on the same OTOY account and I'm using them on 2 seperate machines....
Read more >
Return a view with Laravel Octane Route - Stack Overflow
Yes I had a 404 on the home page and I tried with another URL and I have this error : TypeError: Laravel\Octane\Octane::invokeRoute(): ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found