Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
G
GammaJS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GSC Libraries
  • GammaJS
  • Issues
  • #3

Closed
Open
Opened Nov 22, 2019 by Ben Galloway@beng
  • Report abuse
  • New issue
Report abuse New issue

Crashes when run with Node v12

The output is as follows:

yarn run v1.19.1
$ /mnt/c/dev/_test/gamma-api/node_modules/.bin/babel-node resourceListByViewByDate.js
  gammajs Method called: {"name":"ResourceListByViewByDateLoad","type":"XMLResourceByViewRangeRequest","responseWrapper":"DateList","returnType":"DateList","endpoint":"availability","inputFormat":{"ResStartDate":"Mandatory","ResEndDate":"Mandatory","ResCode":"Optional","ResView":"Mandatory","EventCode":"Optional","ShowProductMap":"Optional"}} +0ms
(node:7630) UnhandledPromiseRejectionWarning: Error: The response from the Gamma server could not be parsed correctly. The error was "{
  "errno": "EPROTO",
  "code": "EPROTO",
  "syscall": "write"
}"
    at callGamma (/mnt/c/dev/_test/gamma-api/node_modules/@gsc/gammajs/dist/callGamma.js:36:9)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:7630) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7630) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 1.22s.
  • Discussion
  • Designs

The one place for your designs

To enable design management, you'll need to meet the requirements. If you need help, reach out to our support team for assistance.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
2
Labels
Bug::Non-critical Priority::Medium
Assign labels
  • View project labels
Reference: gsc-libraries/gammajs#3