guillotina_prometheus's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.