Skip to content

Cannot create a string longer than 0x1fffffe8 characters #80

@rweigel

Description

@rweigel

node verify.js --url='http://localhost:8280/hapi/info?id=urn:nasa:pds:lro-crater:data-der-pri'

http://localhost:8280/hapi/info?dataset=urn:nasa:pds:lro-crater:data-der-pri
   ✓ is.RequestError(): Expect no request error for timeout of 1000 ms
when request is for metadata.
   Got:  Timing info [ms]:
{"socket":"0.3","lookup":"0.4","connect":"1.0","response":"277.3","end":"277.7"},
{"wait":"0.3","dns":"0.2","tcp":"0.5","firstByte":"276.3","download":"0.4","total":"277.7"}
   ✓ is.CORSAvailable(): To enable AJAX clients, want CORS HTTP Headers:
Access-Control-Allow-Origin = '*' and, if given,
Access-Control-Allow-Methods to include 'GET'
   Got: Access-Control-Allow-Origin = '*' and No
Access-Control-Allow-Methods header.
   ⚠ is.LastModifiedGiven(): Prefer Last-Modified header to be given for
responses that return only metadata.
   Got: Last-Modified: undefined
   ✓ is.HTTP200(): Expect HTTP status code to be 200
   ✓ is.ContentType(): Expect HTTP Content-Type to match
/^application\/json/
   Got: application/json;charset=ISO-8859-1
   ✓ is.JSONParsable(): Expect JSON.parse(response) to not throw error
   ✓ is.InfoSame(): Expect /info?id= response to match /info?dataset=.

http://localhost:8280/hapi/data?id=urn:nasa:pds:lro-crater:data-der-pri&time.min=2009-06-28T19:00:00.000Z&time.max=2009-06-29T19:00:00.000Z
Problem with verification server (Uncaught Exception). Aborting.
Error: Cannot create a string longer than 0x1fffffe8 characters
     at Buffer.toString (node:buffer:813:17)
     at Request.<anonymous>
(/home/jbf/tmp/20250212/verifier-nodejs/node_modules/request/request.js:1128:39)
     at Request.emit (node:events:513:28)
     at IncomingMessage.<anonymous>
(/home/jbf/tmp/20250212/verifier-nodejs/node_modules/request/request.js:1076:12)
     at Object.onceWrapper (node:events:627:28)
     at IncomingMessage.emit (node:events:525:35)
     at endReadableNT (node:internal/streams/readable:1358:12)
     at processTicksAndRejections (node:internal/process/task_queues:83:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions