^ "<h1>Eroare in raspuns 1</h1>"
^ "{"query":"query {\n getCurrentInfo {\n roles\n fields {\n langcode\n mail\n uuid\n name\n }\n user {\n _id\n director_id\n currency\n functia\n email\n nume\n prenume\n telefon\n genul_de_activitate\n language\n avatar {\n image_id\n }\n coperta\n city_profile\n city_company\n specialitate\n tipul_activitatii_scurt\n managers {\n _id\n coperta\n avatar {\n image_id\n }\n nume\n prenume\n specialitate\n city_profile\n genul_de_activitate\n }\n company {\n brand\n coperta\n adresa_bancii\n adresa_juridica\n adresa_oficiului\n codul_bancii\n codul_fiscal\n denumirea_bancii\n denumirea\n email\n site\n tara\n logo{\n image_id\n }\n print_logo {\n image_id\n }\n iban\n telefon\n tipul_activitatii\n vat\n ads_types\n }\n curriculum_vitae {\n adresa\n data\n email\n telefon\n professional_summary\n avatar {\n image_id\n }\n educations {\n _id\n school\n degree\n field_of_study\n year_start\n year_end\n grade\n activities_and_societies\n description\n }\n experiences {\n _id\n function\n company\n location\n workin_at\n date_start\n date_end\n description\n }\n languages {\n _id\n level\n title\n }\n skills {\n _id\n level\n title\n }\n }\n invitations {\n _id\n company_id\n timestamp\n company {\n company {\n brand\n }\n }\n }\n director {\n _id\n functia\n nume\n prenume\n avatar\n {\n image_id\n }\n coperta\n director_id\n email\n telefon\n city_profile\n city_company\n specialitate\n tipul_activitatii_scurt\n genul_de_activitate\n company {\n _id\n brand\n coperta\n adresa_bancii\n adresa_juridica\n adresa_oficiului\n codul_bancii\n codul_fiscal\n denumirea_bancii\n denumirea\n email\n site\n tara\n logo{\n image_id\n }\n print_logo {\n image_id\n }\n iban\n telefon\n tipul_activitatii\n vat\n ads_types\n discounts_all {\n discount\n summ\n date_start\n date_end\n }\n discounts_personal {\n discount\n buyer_id\n buyer {\n company {\n brand\n }\n }\n }\n }\n }\n }\n pending_invitations {\n _id\n functia\n nume\n prenume\n avatar {\n image_id\n }\n coperta\n director_id\n email\n telefon\n city_profile\n city_company\n specialitate\n tipul_activitatii_scurt\n genul_de_activitate\n }\n campaigns {\n _id\n name\n }\n }\n }","variables":null,"operationName":null}"
^ """
Traceback (most recent call last):\n
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 68, in __call__\n
response = await self.dispatch_func(request, call_next)\n
File "/root/data/./server.py", line 172, in add_cors_header\n
response = await call_next(request)\n
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 46, in call_next\n
raise app_exc\n
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 36, in coro\n
await self.app(scope, request.receive, send_stream.send)\n
File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 157, in _create_span_call\n
return await old_call(app, scope, new_receive, new_send, **kwargs)\n
File "/usr/local/lib/python3.10/site-packages/sentry_asgi/middleware.py", line 22, in __call__\n
raise exc from None\n
File "/usr/local/lib/python3.10/site-packages/sentry_asgi/middleware.py", line 19, in __call__\n
await self.app(scope, receive, send)\n
File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 309, in _sentry_authenticationmiddleware_call\n
await old_call(self, scope, receive, send)\n
File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 157, in _create_span_call\n
return await old_call(app, scope, new_receive, new_send, **kwargs)\n
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/authentication.py", line 36, in __call__\n
auth_result = await self.backend.authenticate(conn)\n
File "/root/data/./use_cases/authorization.py", line 381, in authenticate\n
user_obj.cache_set("online_%d" % user["_id"], {"user": user["_id"]}, expire=300)\n
File "/root/data/./core/base.py", line 286, in cache_set\n
self.cache.setex(name, expire, json.dumps(value, default=json_util.default))\n
File "/usr/local/lib/python3.10/site-packages/redis/commands/core.py", line 2353, in setex\n
return self.execute_command("SETEX", name, time, value)\n
File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/redis/__init__.py", line 264, in sentry_patched_execute_command\n
return old_execute_command(self, name, *args, **kwargs)\n
File "/usr/local/lib/python3.10/site-packages/redis/client.py", line 1266, in execute_command\n
conn = self.connection or pool.get_connection(command_name, **options)\n
File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 1461, in get_connection\n
connection.connect()\n
File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 713, in connect\n
raise ConnectionError(self._error_message(e))\n
redis.exceptions.ConnectionError: Error 111 connecting to 0.0.0.0:6379. Connection refused.\n
\n
During handling of the above exception, another exception occurred:\n
\n
+ Exception Group Traceback (most recent call last):\n
| File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__\n
| await self.app(scope, receive, _send)\n
| File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 157, in _create_span_call\n
| return await old_call(app, scope, new_receive, new_send, **kwargs)\n
| File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 66, in __call__\n
| async with anyio.create_task_group() as task_group:\n
| File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 664, in __aexit__\n
| raise BaseExceptionGroup(\n
| exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)\n
+-+---------------- 1 ----------------\n
| Traceback (most recent call last):\n
| File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 68, in __call__\n
| response = await self.dispatch_func(request, call_next)\n
| File "/root/data/./server.py", line 172, in add_cors_header\n
| response = await call_next(request)\n
| File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 46, in call_next\n
| raise app_exc\n
| File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 36, in coro\n
| await self.app(scope, request.receive, send_stream.send)\n
| File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 157, in _create_span_call\n
| return await old_call(app, scope, new_receive, new_send, **kwargs)\n
| File "/usr/local/lib/python3.10/site-packages/sentry_asgi/middleware.py", line 22, in __call__\n
| raise exc from None\n
| File "/usr/local/lib/python3.10/site-packages/sentry_asgi/middleware.py", line 19, in __call__\n
| await self.app(scope, receive, send)\n
| File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 309, in _sentry_authenticationmiddleware_call\n
| await old_call(self, scope, receive, send)\n
| File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 157, in _create_span_call\n
| return await old_call(app, scope, new_receive, new_send, **kwargs)\n
| File "/usr/local/lib/python3.10/site-packages/starlette/middleware/authentication.py", line 36, in __call__\n
| auth_result = await self.backend.authenticate(conn)\n
| File "/root/data/./use_cases/authorization.py", line 381, in authenticate\n
| user_obj.cache_set("online_%d" % user["_id"], {"user": user["_id"]}, expire=300)\n
| File "/root/data/./core/base.py", line 286, in cache_set\n
| self.cache.setex(name, expire, json.dumps(value, default=json_util.default))\n
| File "/usr/local/lib/python3.10/site-packages/redis/commands/core.py", line 2353, in setex\n
| return self.execute_command("SETEX", name, time, value)\n
| File "/usr/local/lib/python3.10/site-packages/sentry_sdk/integrations/redis/__init__.py", line 264, in sentry_patched_execute_command\n
| return old_execute_command(self, name, *args, **kwargs)\n
| File "/usr/local/lib/python3.10/site-packages/redis/client.py", line 1266, in execute_command\n
| conn = self.connection or pool.get_connection(command_name, **options)\n
| File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 1461, in get_connection\n
| connection.connect()\n
| File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 713, in connect\n
| raise ConnectionError(self._error_message(e))\n
| redis.exceptions.ConnectionError: Error 111 connecting to 0.0.0.0:6379. Connection refused.\n
+------------------------------------\n
"""
Verbose information:
* Expire in 0 ms for 6 (transfer 0x5f3a761b3550)
* Expire in 10000 ms for 8 (transfer 0x5f3a761b3550)
* Expire in 10000 ms for 2 (transfer 0x5f3a761b3550)
* Trying 127.0.0.1...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x5f3a761b3550)
* Connected to 127.0.0.1 (127.0.0.1) port 3500 (#0)
> POST / HTTP/1.1
Host: py.dev.ubris.com
Accept: */*
Content-Type: application/json
Content-Length: 6025
Expect: 100-continue
* Expire in 1000 ms for 0 (transfer 0x5f3a761b3550)
< HTTP/1.1 500 Internal Server Error
< date: Tue, 10 Jun 2025 03:53:17 GMT
< server: uvicorn
< content-length: 6640
< content-type: text/plain; charset=utf-8
* HTTP error before end of send, stop sending
<
* Closing connection 0
The website encountered an unexpected error. Please try again later.
RuntimeException: Failed to start the session because headers have already been sent by "/var/www/html/ubris/dev/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 182. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 145 of vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php). Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (Line: 164)
Drupal\Core\Session\SessionManager->startNow() (Line: 195)
Drupal\Core\Session\SessionManager->save() (Line: 196)
Symfony\Component\HttpFoundation\Session\Session->save() (Line: 60)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 35)