Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded #15

Open
tbanov opened this issue Oct 11, 2024 · 2 comments

Comments

@tbanov
Copy link

tbanov commented Oct 11, 2024

I am getting e 500 error from time to time, from bots which are scanning my application, here is the log:

image

Here is the content of the file facebook-pixel.blade.php

image

Please advise?

@jordyvanderhaegen
Copy link
Collaborator

Hi @tbanov, can you please provide a stack trace including the data being passed to the json_encode method?

@tbanov
Copy link
Author

tbanov commented Oct 15, 2024

Hi @jordyvanderhaegen and thank you for your work

Unfortunately I can't find the passed data in my logs, I have tried to reproduce the issue but with no success for now.

In the man time here is the stack trace:

"#0 /app/vendor/guzzlehttp/guzzle/src/functions.php(166): GuzzleHttp\Utils::jsonEncode(Array, 0, 512) #1 /app/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequestAsync.php(82): GuzzleHttp\json_encode(Array) #2 /app/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequestAsync.php(51): FacebookAds\Object\ServerSide\EventRequestAsync->eventPromise('706800900325278...', Array) #3 /app/vendor/esign/laravel-conversions-api/src/ConversionsApi.php(77): FacebookAds\Object\ServerSide\EventRequestAsync->execute() #4 /app/vendor/esign/laravel-conversions-api/src/View/Components/FacebookPixelPageView.php(13): Esign\ConversionsApi\ConversionsApi->sendEvents() #5 /app/vendor/laravel/framework/src/Illuminate/View/Component.php(102): Esign\ConversionsApi\View\Components\FacebookPixelPageView->__construct() #6 /app/resources/views/layouts/facebook-pixel.blade.php(3): Illuminate\View\Component::resolve(Array) #7 /app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(123): require('/app/storage/fr...') #8 /app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() #9 /app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire('/app/storage/fr...', Array) #10 /app/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(22): Illuminate\View\Engines\PhpEngine->evaluatePath('/app/storage/fr...', Array) #11 /app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->evaluatePath('/app/storage/fr...', Array) #12 /app/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(10): Illuminate\View\Engines\CompilerEngine->get('/app/resources/...', Array) #13 /app/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/ViewEngineDecorator.php(35): Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->get('/app/resources/...', Array) #14 /app/vendor/laravel/framework/src/Illuminate/View/View.php(207): Sentry\Laravel\Tracing\ViewEngineDecorator->get('/app/resources/...', Array) #15 /app/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\View\View->getContents() #16 /app/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\View\View->renderContents() #17 /app/resources/views/layouts/public/partials/head.blade.php(31): Illuminate\View\View->render()





"#0 /app/vendor/guzzlehttp/guzzle/src/functions.php(166): GuzzleHttp\Utils::jsonEncode(Array, 0, 512)
#1 /app/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequestAsync.php(82): GuzzleHttp\json_encode(Array)
#2 /app/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequestAsync.php(51): FacebookAds\Object\ServerSide\EventRequestAsync->eventPromise('706800900325278...', Array)
#3 /app/vendor/esign/laravel-conversions-api/src/ConversionsApi.php(77): FacebookAds\Object\ServerSide\EventRequestAsync->execute()
#4 /app/vendor/esign/laravel-conversions-api/src/View/Components/FacebookPixelPageView.php(13): Esign\ConversionsApi\ConversionsApi->sendEvents()
#5 /app/vendor/laravel/framework/src/Illuminate/View/Component.php(102): Esign\ConversionsApi\View\Components\FacebookPixelPageView->__construct()
#6 /app/resources/views/layouts/facebook-pixel.blade.php(3): Illuminate\View\Component::resolve(Array)
#7 /app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(123): require('/app/storage/fr...')
#8 /app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
#9 /app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire('/app/storage/fr...', Array)
#10 /app/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(22): Illuminate\View\Engines\PhpEngine->evaluatePath('/app/storage/fr...', Array)
#11 /app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->evaluatePath('/app/storage/fr...', Array)
#12 /app/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(10): Illuminate\View\Engines\CompilerEngine->get('/app/resources/...', Array)
#13 /app/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/ViewEngineDecorator.php(35): Livewire\Mechanisms\ExtendBlade\ExtendedCompilerEngine->get('/app/resources/...', Array)
#14 /app/vendor/laravel/framework/src/Illuminate/View/View.php(207): Sentry\Laravel\Tracing\ViewEngineDecorator->get('/app/resources/...', Array)
#15 /app/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\View\View->getContents()
#16 /app/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\View\View->renderContents()
#17 /app/resources/views/layouts/public/partials/head.blade.php(31): Illuminate\View\View->render()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants