Giter VIP home page Giter VIP logo

Comments (11)

GlennM avatar GlennM commented on June 20, 2024

I can't reproduce this locally. The response you're reporting looks similar to the (200) response I get.

Could you please share the code from the actions method on the User Resource?
(and make sure you're using / imported aatwebsite\LaravelNovaExcel\Actions\DownloadExcel;)

from laravel-nova-excel.

packytagliaferro avatar packytagliaferro commented on June 20, 2024

In my User.php

use Maatwebsite\LaravelNovaExcel\Actions\DownloadExcel;


 public function actions(Request $request)
    {
        return [
            (new DownloadExcel())->askForWriterType()
        ];
    }

from laravel-nova-excel.

packytagliaferro avatar packytagliaferro commented on June 20, 2024

I got it working. My web routes file was blocking the nova-vendor path. You can close this issue, it wasnt related to the plugin

from laravel-nova-excel.

kaleb14587 avatar kaleb14587 commented on June 20, 2024

@packytagliaferro
how did you solve it?
I have exactly the same error, but it only happens in my production environment.

from laravel-nova-excel.

packytagliaferro avatar packytagliaferro commented on June 20, 2024

@kaleb14587 Mine was due to my web routes ignoring some urls for my app( /channel/) and it ended up blocking nova routes too so I wrapped in routes like this:

Route::group([
    'middleware' => ['subscriber'],
    'where' => [
        'channel' => '^(?!nova-api|nova-vendor|admin.*$).*'
    ],
], function () {

    //My web routes here

});

Was a pretty one off case but could help?

from laravel-nova-excel.

kaleb14587 avatar kaleb14587 commented on June 20, 2024

@packytagliaferro I've done everything, but the error only happens in my production environment, in the homologation and development environment it doesn't happen

from laravel-nova-excel.

kaleb14587 avatar kaleb14587 commented on June 20, 2024

@ kaleb14587 O meu foi devido às minhas rotas da Web que ignoravam alguns URLs do meu aplicativo (/ channel /) e ele acabou bloqueando novas rotas também, então envolvi-me em rotas como esta:

Route::group([
    'middleware' => ['subscriber'],
    'where' => [
        'channel' => '^(?!nova-api|nova-vendor|admin.*$).*'
    ],
], function () {

    //My web routes here

});

Foi um caso bonito, mas poderia ajudar?

I tried this method too, but it still doesn't work, it returns me exactly this error you had.
I even tried to rewrite the route, but it doesn't send it to the controller I created.

from laravel-nova-excel.

kaleb14587 avatar kaleb14587 commented on June 20, 2024

@packytagliaferro
I just found out that this happens when I activate the ssl certificate

from laravel-nova-excel.

arifulhb avatar arifulhb commented on June 20, 2024

@kaleb14587 how did you fixed this?

from laravel-nova-excel.

jayge-ekenstam avatar jayge-ekenstam commented on June 20, 2024

I am dealing with the same issue in production only. Has anyone figured out what is causing this?

from laravel-nova-excel.

shstkvch avatar shstkvch commented on June 20, 2024

I managed to solve this issue by adjusting my Nginx config: https://stackoverflow.com/a/56738758

from laravel-nova-excel.

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.