#getting http error in production

14 messages · Page 1 of 1 (latest)

stiff wyvern
#
GET http://grazily.com/api/1/searches/history/tags/cto - 24709ms

==> /var/log/grazily-api.error.log <==
[uncaught application error]: Http - connection closed before message completed

    at async Object.respondWith (deno:ext/http/01_http.js:240:11)
[uncaught application error]: Http - connection closed before message completed

request: {
  url: "http://grazily.com/api/1/searches/history/tags/cto",
  method: "GET",
  hasBody: false
}
response: { status: 200, type: "json", hasBody: true, writable: false }

    at async Object.respondWith (deno:ext/http/01_http.js:240:11)
#

I don't know if its ram cpu or what.

#

but its about 2k json objects being returned.

#

in mongodb

#

deno 1.28.3

#

any idea on how to debug this?

daring pier
#

2kb or 2000 json objects?

#

Checking out the link, the site supports https.

#

How are you making the request?

stiff wyvern
#

its a get request to a deno endpoint in oak that looks up data in mongodb. Its not an incredibly large amount of data. a few thousand json objects

#

i think the deno process is running out of money.....

#

i mean memory lol

stiff wyvern
#

@daring pier

daring pier
#

What I sent worked for me, if I recall correctly.