judev's avatar
Level 1

IDN 'GUZZLE' DON'T LIKE MY PROJECT

Hello after developping for a month i'm gonna add a field image to my form of product after uploading into my datase the data of fields i got this error :

GuzzleHttp\Exception\InvalidArgumentException
`IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL)`

Why this error come now after devlopping for a month ? If someone have found any solution about this, i'm taker for solution.

I'm using laravel: 7.5.2. I have also try this version: 7.0, 7.6.2, 7.3 | i got same error with this version

Edit

So i have detect my error.

After pushing my form for create product, this form is located 2 time in my project : 1 for the admin product creation and another for seller product creation they are bugged by my route creation of product (because my code is old, that i know on this post at github guzzle issue "guzzle provide idn for php" : https://github.com/guzzle/guzzle/issues/2605). after pushing the form into the database i got an error of idn conversion fail. a guys of another post talk route can be in conflict with this conversion of IDN.
use Illuminate\Support\Facades\Route;
//Seller Route :
Route::prefix('merchant')->middleware('is_seller')->group(
    function () {
        Route::get('dashboard', 'SellerController@index')->name('seller.dashboard')->middleware('pgp');
        Route::post('dashboard/update/user/{id}', 'SellerController@pushFormUpdate')->name('seller.dashboard.form.submit')->middleware('pgp');
        Route::get('dashboard/product/create', 'SellerController@showViewCreateProduct')->name('seller.dashboard.product')->middleware('pgp');
        Route::post('dashboard/product/create', 'SellerController@pushFormCreateProduct')->name('seller.dashboard.product.submit')->middleware('pgp');
        Route::get('dashboard/product/', 'SellerController@showProduct')->name('seller.product')->middleware('pgp');
        Route::get('dashboard/delete/product/{id}', 'SellerController@delete')->name('seller.product.delete')->middleware('pgp');
        Route::get('dashboard/edit/product/{id}', 'SellerController@editProduct')->name('seller.product.edit')->middleware('pgp');
        Route::post('dashboard/edit/product/{id}', 'SellerController@updateProduct')->name('seller.product.update')->middleware('pgp');
    }
);```

*Really bad English Sorry <3
0 likes
1 reply
judev's avatar
judev
OP
Best Answer
Level 1

[SOLVED]

solved by removing package scout and searchableTrait.

Please or to participate in this conversation.