Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
6.5 kB
1
Indexable
Never
{
  "@timestamp": "2024-08-17T07:05:48.285Z",
  "log.level": "warning",
  "message": "HTTP GET / 400 [0.02, 10.64.94.134:56750]",
  "ecs": {
    "version": "1.6.0"
  },
  "log": {
    "logger": "django.channels.server",
    "origin": {
      "file": {
        "line": 178,
        "name": "runserver.py"
      },
      "function": "log_action"
    },
    "original": "HTTP GET / 400 [0.02, 10.64.94.134:56750]"
  },
  "process": {
    "name": "MainProcess",
    "pid": 47,
    "thread": {
      "id": 140065908979392,
      "name": "django-main-thread"
    }
  }
}
{
  "@timestamp": "2024-08-17T07:05:48.775Z",
  "log.level": "warning",
  "message": "Bad Request: /",
  "ecs": {
    "version": "1.6.0"
  },
  "error": {
    "message": "Parameter validation failed:\nInvalid bucket name \"\": Bucket name must match the regex \"^[a-zA-Z0-9.\\-_]{1,255}$\" or be an ARN matching the regex \"^arn:(aws).*:(s3|s3-object-lambda):[a-z\\-0-9]*:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\\-.]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\\-]{1,63}$\"",
    "stack_trace": "  File \"/usr/local/lib/python3.10/site-packages/asgiref/sync.py\", line 518, in thread_handler\n    raise exc_info[1]\n  File \"/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py\", line 42, in inner\n    response = await get_response(request)\n  File \"/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py\", line 284, in _get_response_async\n    response = await sync_to_async(\n  File \"/usr/local/lib/python3.10/site-packages/asgiref/sync.py\", line 468, in __call__\n    ret = await asyncio.shield(exec_coro)\n  File \"/usr/local/lib/python3.10/site-packages/asgiref/current_thread_executor.py\", line 40, in run\n    result = self.fn(*self.args, **self.kwargs)\n  File \"/usr/local/lib/python3.10/site-packages/asgiref/sync.py\", line 522, in thread_handler\n    return func(*args, **kwargs)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/response.py\", line 114, in render\n    self.content = self.rendered_content\n  File \"/usr/local/lib/python3.10/site-packages/django/template/response.py\", line 92, in rendered_content\n    return template.render(context, self._request)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/backends/django.py\", line 61, in render\n    return self.template.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 175, in render\n    return self._render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 167, in _render\n    return self.nodelist.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 1005, in render\n    return SafeString(\"\".join([node.render_annotated(context) for node in self]))\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 1005, in <listcomp>\n    return SafeString(\"\".join([node.render_annotated(context) for node in self]))\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 966, in render_annotated\n    return self.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/loader_tags.py\", line 157, in render\n    return compiled_parent._render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 167, in _render\n    return self.nodelist.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 1005, in render\n    return SafeString(\"\".join([node.render_annotated(context) for node in self]))\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 1005, in <listcomp>\n    return SafeString(\"\".join([node.render_annotated(context) for node in self]))\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 966, in render_annotated\n    return self.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/loader_tags.py\", line 63, in render\n    result = block.nodelist.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 1005, in render\n    return SafeString(\"\".join([node.render_annotated(context) for node in self]))\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 1005, in <listcomp>\n    return SafeString(\"\".join([node.render_annotated(context) for node in self]))\n  File \"/usr/local/lib/python3.10/site-packages/django/template/base.py\", line 966, in render_annotated\n    return self.render(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/templatetags/static.py\", line 116, in render\n    url = self.url(context)\n  File \"/usr/local/lib/python3.10/site-packages/django/templatetags/static.py\", line 113, in url\n    return self.handle_simple(path)\n  File \"/usr/local/lib/python3.10/site-packages/django/templatetags/static.py\", line 129, in handle_simple\n    return staticfiles_storage.url(path)\n  File \"/usr/local/lib/python3.10/site-packages/storages/backends/s3.py\", line 650, in url\n    url = self.bucket.meta.client.generate_presigned_url(\n  File \"/usr/local/lib/python3.10/site-packages/botocore/signers.py\", line 685, in generate_presigned_url\n    params = self._emit_api_params(\n  File \"/usr/local/lib/python3.10/site-packages/botocore/client.py\", line 1084, in _emit_api_params\n    self.meta.events.emit(\n  File \"/usr/local/lib/python3.10/site-packages/botocore/hooks.py\", line 412, in emit\n    return self._emitter.emit(aliased_event_name, **kwargs)\n  File \"/usr/local/lib/python3.10/site-packages/botocore/hooks.py\", line 256, in emit\n    return self._emit(event_name, kwargs)\n  File \"/usr/local/lib/python3.10/site-packages/botocore/hooks.py\", line 239, in _emit\n    response = handler(**kwargs)\n  File \"/usr/local/lib/python3.10/site-packages/botocore/handlers.py\", line 288, in validate_bucket_name\n    raise ParamValidationError(report=error_msg)\n",
    "type": "ParamValidationError"
  },
  "log": {
    "logger": "django.request",
    "origin": {
      "file": {
        "line": 241,
        "name": "log.py"
      },
      "function": "log_response"
    },
    "original": "Bad Request: /"
  },
  "process": {
    "name": "MainProcess",
    "pid": 47,
    "thread": {
      "id": 140065114154688,
      "name": "asyncio_3"
    }
  },
  "request": "<ASGIRequest: GET '/'>",
  "status_code": 400
}

Leave a Comment