Skip to content

AlchemyProvider._send causing error #4178

Answered by luiztools
luiztools asked this question in Q&A
Discussion options

You must be logged in to vote

In order to resolve, I overwrote the ./patch-core.js from agent-base using the code below. So everything works fine now. Thanks for the help with the initial error.

var Module = require('module');
Module.prototype.require = new Proxy(Module.prototype.require,{
apply(target, thisArg, argumentsList){
let name = argumentsList[0];
if(/patch-core/g.test(name)){
return {};
}
return Reflect.apply(target, thisArg, argumentsList)
}
})

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@luiztools
Comment options

@luiztools
Comment options

@luiztools
Comment options

Answer selected by luiztools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4173 on June 27, 2023 14:47.