How to solve intermittent "Error: Server terminated early with status 69" - selenium-webdriver

I am running my tests using selenium-webdriver, randomly some intermediate test fail with "Error: Server terminated early with status 69" and then it continues fine for next test.
So I wish to know,
where should I look for the meaning of status code 69
if it means Unhandled error (as on next line), what can I do further to debug the cause
thx
console.error node_modules/jest-jasmine2/build/jasmine/Env.js:157
Unhandled error
console.error node_modules/jest-jasmine2/build/jasmine/Env.js:158
Error: Server terminated early with status 69
at earlyTermination.catch.e (PATH\node_modules\selenium-webdriver\remote\index.js:252:52)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
From: Task: WebDriver.createSession()
at Function.createSession (PATH\node_modules\selenium-webdriver\lib\webdriver.js:769:24)
at Function.createSession (PATH\node_modules\selenium-webdriver\firefox\index.js:521:41)
at createDriver (PATH\node_modules\selenium-webdriver\index.js:170:33)
at Builder.build (PATH\node_modules\selenium-webdriver\index.js:645:16)
at Object.get (PATH\src\setup\web\driver.ts:13:9)
at Object.<anonymous> (PATH\src\setup\web\setup.ts:9:19)
at Generator.next (<anonymous>)
at PATH\src\setup\web\setup.ts:7:71
at new Promise (<anonymous>)
at Object.<anonymous>.__awaiter (PATH\src\setup\web\setup.ts:3:12)
at Object.beforeAll (PATH\src\setup\web\setup.ts:18:12)
at Object.<anonymous> (PATH\src\setup\common.ts:215:17)
at Generator.next (<anonymous>)
at PATH\src\setup\common.ts:7:71
at new Promise (<anonymous>)
at Object.<anonymous>.__awaiter (PATH\src\setup\common.ts:3:12)
at Object.<anonymous>.beforeAll (PATH\src\setup\common.ts:213:22)
at Object.asyncJestLifecycle (PATH2\node_modules\jest-jasmine2\build\jasmine_async.js:63:37)
at resolve (PATH2\node_modules\jest-jasmine2\build\queue_runner.js:56:12)
at new Promise (<anonymous>)
at mapper (PATH2\node_modules\jest-jasmine2\build\queue_runner.js:43:19)
at promise.then (PATH2\node_modules\jest-jasmine2\build\queue_runner.js:87:41)
at <anonymous>

Related

Error with the Command "oynat" - Action #2 (Store Audio Info):

Error with the Command "oynat" - Action #2 (Store Audio Info): TypeError: Cannot read properties of undefined (reading 'undefined')
at Object.action [as Store Audio Info] (C:\Users\baran\OneDrive\Masaüstü\poglymuzik-main\actions\store_audio_info_MOD.js:311:37)
at Object.Actions.callNextAction (C:\Users\baran\OneDrive\Masaüstü\poglymuzik-main\bot.js:1469:21)
at Object.action [as Store Message Params] (C:\Users\baran\OneDrive\Masaüstü\poglymuzik-main\actions\store_message_params_MOD.js:258:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I tried everything but i can't solve this error. Can somebody help me?

The console not fetchinng error,how to correct api settings

my console is not displaying information of API used
the info tab is showing this
TypeError: url.indexOf is not a function
at buildURL (buildURL.js:61:1)
at dispatchXhrRequest (xhr.js:46:1)
at new Promise (<anonymous>)
at xhrAdapter (xhr.js:16:1)
at dispatchRequest (dispatchRequest.js:58:1)
at Axios.request (Axios.js:109:1)
at Axios.<computed> [as get] (Axios.js:131:1)
at Function.wrap [as get] (bind.js:9:1)
at getPlacesData (index.js:24:1)
at App.js:14:1
I am not able to understand where I went wrong

(node:24) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'send' of null

Error:
(node:24) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'send' of null
at Client.<anonymous> (/home/container/index.js:49:16)
at Client.emit (events.js:314:20)
at Object.module.exports [as GUILD_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/GUILD_CREATE.js:33:14)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:125:16)
at WebSocket.emit (events.js:314:20)
at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:797:20)
at Receiver.emit (events.js:314:20)
(node:24) 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: 1)
(node:24) [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.
Code:
client.on("guildCreate", guild => {
guild.owner.send("Thanks! You can use /help to discover commands. Don't forget to join our discord! https://discord.gg/EnR4PXK")
client.channels.cache.get(`771736722894618685`).send(`PlayMusic zit nu ook in *${guild.name}* (${guild.id}), De eigenaar is: ${guild.owner.user.tag} (${guild.owner.user.id}) (<#${guild.owner.user.id}>) . Deze server heeft *${guild.memberCount}* leden! :tada: ** De bot zit nu in ${client.guilds.cache.size} servers** `)
console.log(`PlayMusic zit nu ook in ${guild.name} (${guild.id}), De eigenaar is: ${guild.owner.user.username} (${guild.owner.user.id}). Deze server heeft ${guild.memberCount} leden!`);
channel.createInvite({unique: true})
});
First off all he worked a month and then i got this error? Does someone knows the correct way to create something like this?
Guild#owner is a nullable property that relies on the cache. Fetch the owner through GuildMemberManager#fetch() using Guild#ownerID to force cache the user object.
// make sure to make your function async!
const owner = await client.users.fetch(guild.ownerID);
owner.send(...);

Protractor Run time Error Failed: script timeout: Protractor : Process exited with error code 1

Trying to validate text using getText() method, but protractor keeps failing the test as it is not able to find the object
Tried 1:getting the element by id, xpath and name
Tried 2:
element(by.xpath("//*[#id='dropdownMenuLink']")).getText().then(function(text){ console.log(text);
});
Tried 3 : get text by giving expected results
expect(element(by.xpath("//[#id='dropdownMenuLink']")).getText()).toBe("expectedresult");
});
describe('Website FUSW001', function()
{
it('Login', function()
{
browser.get('angularwebsite');
element(by.name('user')).sendKeys('myvalidusername');
element(by.name('pass')).sendKeys('mypassword');
element(by.name('login')).click();
browser.driver.manage().window().maximize().then(function()
{
element(by.xpath("//[#id='dropdownMenuLink']")).getText().then(function(text)
{
console.log(text); // log will display myvalidusername
});
});
});
});
Error Message :
16:08:53] I/launcher - Running 1 instances of WebDriver
[16:08:53] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
Started
[31mF [0m
Failures:
1) Website FUSW001 Login
Message:
[31m Failed: script timeout: result was not received in 11 seconds
(Session info: chrome=72.0.3626.96)
(Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17763 x86_64) [0m
Stack:
ScriptTimeoutError: script timeout: result was not received in 11 seconds
(Session info: chrome=72.0.3626.96)
(Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17763 x86_64)
at Object.checkLegacyResponse
(C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\error.js:546:15)
at parseHttpResponse (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\http.js:509:13)
at doSend.then.response (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: Protractor.waitForAngular() - Locator: By(xpath, //*[#id='dropdownMenuLink'])
at thenableWebDriverProxy.schedule (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\webdriver.js:807:17)
at ProtractorBrowser.executeAsyncScript_ (C:\Protractor\ProtractorWebTest\protractor\built\browser.js:425:28)
at angularAppRoot.then (C:\Protractor\ProtractorWebTest\protractor\built\browser.js:456:33)
at ManagedPromise.invokeCallback_ (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:1376:14)
at TaskQueue.execute_
(C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:3084:14)
at TaskQueue.executeNext_
(C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:3067:27)
at asyncRun (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:2927:27)
at C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:668:7
at process._tickCallback (internal/process/next_tick.js:68:7)Error
at ElementArrayFinder.applyAction_ (C:\Protractor\ProtractorWebTest\protractor\built\element.js:459:27)
at ElementArrayFinder.(anonymous function).args [as getText] (C:\Protractor\ProtractorWebTest\protractor\built\element.js:91:29)
at ElementFinder.(anonymous function).args [as getText] (C:\Protractor\ProtractorWebTest\protractor\built\element.js:831:22)
at C:\Protractor\ProtractorWebTest\spec1.js:12:57
at ManagedPromise.invokeCallback_ (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:1376:14)
at TaskQueue.execute_ (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:3084:14)
at TaskQueue.executeNext_ (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:3067:27)
at asyncRun (C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:2927:27)
at C:\Protractor\ProtractorWebTest\protractor\node_modules\selenium-webdriver\lib\promise.js:668:7
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: Run it("Login") in control flow
at UserContext.<anonymous> (C:\Protractor\ProtractorWebTest\protractor\node_modules\jasminewd2\index.js:94:19)
From asynchronous test:
Error
at Suite.<anonymous> (C:\Protractor\ProtractorWebTest\spec1.js:4:4)
at Object.<anonymous> (C:\Protractor\ProtractorWebTest\spec1.js:1:63)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
1 spec, 1 failure
Finished in 21.934 seconds
[16:09:17] I/launcher - 0 instance(s) of WebDriver still running
[16:09:17] I/launcher - chrome #01 failed 1 test(s)
[16:09:17] I/launcher - overall: 1 failed spec(s)
[16:09:17] E/launcher - Process exited with error code 1

Uncaught Error: No data returned for operation `<mutaion name>`, got error(s)

I am using React-Relay. I am doing a mutation which returns errors which is totally fine but at the end I am getting following error in console which is related to react-relay library.
Uncaught Error: No data returned for operation `CreateUserMutation`, got error(s):
A unique constraint would be violated on User. Details: Field name = email
See the error `source` property for more information.
at createError (RelayError.js:44)
at Object.create (RelayError.js:29)
at normalizePayload (normalizePayload.js:31)
at Object.next (RelayModernEnvironment.js:245)
at Object.next (RelayObservable.js:223)
at Object.next (RelayObservable.js:561)
at Object.next (RelayObservable.js:561)
at RelayObservable.js:492
at _subscribe (RelayObservable.js:609)
at RelayObservable.subscribe (RelayObservable.js:315)
at Object.next (RelayObservable.js:376)
at Object.next (RelayObservable.js:561)
at RelayObservable.js:484
Any idea how we can catch/avoid it?

Resources