Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

workaround for null bytes

Andras Bacsai25410cb31a76
diff --git a/app/Livewire/Project/Service/Navbar.php b/app/Livewire/Project/Service/Navbar.php
index 7d3987b3d5..419fef5059 100644
--- a/app/Livewire/Project/Service/Navbar.php
+++ b/app/Livewire/Project/Service/Navbar.php
@@ -62,11 +62,17 @@ class Navbar extends Component
public function checkDeployments()
{
- $activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
- $status = data_get($activity, 'properties.status');
- if ($status === 'queued' || $status === 'in_progress') {
- $this->isDeploymentProgress = true;
- } else {
+ try {
+ // TODO: This is a temporary solution. We need to refactor this.
+ // We need to delete null bytes somehow.
+ $activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
+ $status = data_get($activity, 'properties.status');
+ if ($status === 'queued' || $status === 'in_progress') {
+ $this->isDeploymentProgress = true;
+ } else {
+ $this->isDeploymentProgress = false;
+ }
+ } catch (\Throwable $e) {
$this->isDeploymentProgress = false;
}
}