question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not point to the file containing the error

See original GitHub issue

Summary

Instead, the script just mentions current.sql even if we’re using current directory instead of current.sql

Steps to reproduce

Expected results

Actual results

Additional context

[2020-10-08T19:22:48.788Z]: Running current.sql

🛑 Error occurred whilst processing migration error: cannot drop function app_public.current_user_scope() because other objects depend on it at Parser.parseErrorMessage (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/parser.js:278:15) at Parser.handlePacket (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/parser.js:126:29) at Parser.parse (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/parser.js:39:38) at Socket.<anonymous> (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/index.js:10:42) at Socket.emit (events.js:321:20) at addChunk (_stream_readable.js:297:12) at readableAddChunk (_stream_readable.js:273:9) at Socket.Readable.push (_stream_readable.js:214:10) at TCP.onStreamRead (internal/stream_base_commons.js:186:23)

(node:45201) UnhandledPromiseRejectionWarning: error: cannot drop function app_public.current_user_scope() because other objects depend on it at Parser.parseErrorMessage (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/parser.js:278:15) at Parser.handlePacket (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/parser.js:126:29) at Parser.parse (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/parser.js:39:38) at Socket.<anonymous> (/Users/timmyk/code/graphql/Gel/@app/db/node_modules/pg-protocol/dist/index.js:10:42) at Socket.emit (events.js:321:20) at addChunk (_stream_readable.js:297:12) at readableAddChunk (_stream_readable.js:273:9) at Socket.Readable.push (_stream_readable.js:214:10) at TCP.onStreamRead (internal/stream_base_commons.js:186:23) (node:45201) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

Possible Solution

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Nembuscommented, Oct 9, 2020

I just ran npm udate graphile-migrate, and it incremented to v1.0.2. Thank you, for the quick fix. It’s good to see some errors.

Tim

On October 9, 2020 at 11:48:16 AM, Benjie Gillam (notifications@github.com) wrote:

(Fix is out in v1.0.2)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/graphile/migrate/issues/95#issuecomment-706258344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABWEDD5LZXDB3JPMZOAQV3SJ4WEBANCNFSM4SJKETNA .

0reactions
benjiecommented, Oct 9, 2020

(Fix is out in v1.0.2)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alamofire error Code=-1000 "The URL does not point to a file ...
This is accomplished with multipartFormData.appendBodyPart(data: imageData, name: "image", fileName: "image.jpeg", mimeType: "image/jpeg") .
Read more >
"No point file format match found" when importing in Civil 3D
When trying to import a point file into Civil 3D, a message appears saying the point format does not match.
Read more >
Fixed: "Procedure Entry Point Could Not Be Located" Error
This error occurs when software is unable to locate the DLL library it requires to run. It could also happen if the library...
Read more >
Error message when you open or save a file in Microsoft Excel
When you open or save a file in Microsoft Excel, you may receive one of the following error messages: Error message 1. Filename...
Read more >
File header incorrectly reporting 0 point records in R?
The header of a file should contains information including the ... For the error when retiling you did not provide your code but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found