Coder Social home page Coder Social logo

guillotina_prometheus's People

Contributors

vangheem avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

guillotina_prometheus's Issues

500 error with plain curl request

I would expect that curl localhost:8080/metrics gets me a plain text list of metrics. Instead a 500 error is raised:

<html><head><title>500 Internal Server Error</title></head><body><h1>500 Internal Server Error</h1>Server got itself in trouble</body></html>

And in the error log I get:

ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 422, in start
    resp = yield from self._request_handler(request)
  File "/usr/local/lib/python3.6/site-packages/guillotina/factory/app.py", line 102, in _handle
    return await super()._handle(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web.py", line 306, in _handle
    resp = yield from handler(request)
  File "/usr/local/lib/python3.6/site-packages/prometheus_async/aio/_decorators.py", line 42, in decorator
    rv = yield from wrapped(*args, **kw)
  File "/usr/local/lib/python3.6/site-packages/guillotina_prometheus/middleware.py", line 9, in middleware_handler
    resp = await handler(request)
  File "/usr/local/lib/python3.6/site-packages/guillotina/traversal.py", line 243, in handler
    resp = await self.rendered(view_result)
  File "/usr/local/lib/python3.6/site-packages/guillotina/renderers.py", line 209, in __call__
    resp = self.guess_response(value)
  File "/usr/local/lib/python3.6/site-packages/guillotina/renderers.py", line 192, in guess_response
    if '<html' in resp:
TypeError: argument of type 'Response' is not iterable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.