Posts by Marlon • 57 points
9 posts
-
-2
votes1
answer52
viewsA: Return value of a NODE function
Leave the function I needed here in case anyone needs it: async t(texto) { if (this.idioma !== 'pt') { const res = await axios({ baseURL: process.env.TRANSLATOR_TEXT_ENDPOINT, url: '/translate',…
-
-2
votes1
answer52
viewsQ: Return value of a NODE function
Hello I’m starting with NODE. I have the function below and would like it to return the translated text. Today she plays the text to the console. How do I get her to return the text? How would it…
-
0
votes0
answers34
viewsQ: Typeerror: Cannot perform 'get' on a proxy that has been revoked
Hello I am having trouble working with asynchronous Node mode with Bot Framework 4. When trying to execute the code below, it generates the error: Typeerror: Cannot perform 'get' on a proxy that has…
-
-1
votes1
answer990
viewsQ: Problem with async / await - Syntaxerror: await is only Valid in async Function [closed]
Hello I’m trying to set up a function but without success. I use a "client.classifyImageUrl" function that will process a cognitive service, when finished, I need to take the result value (more…
-
0
votes2
answers47
viewsQ: Check if there is a value in Node JS
Hello I have a variable in Nodejs that sometimes comes with the following content: { '$instance': {} } and sometimes it comes like this: { '$instance': { numeropessoas: [ [Object] ] },…
-
3
votes2
answers841
viewsA: What is an event?
"Event" is usually the same as function or Procedure, ie, are code blocks with specific objectives. What happens is that the term event is more related to parts of the application that there will be…
-
0
votes1
answer73
viewsA: PHP - upload an image
It seems your code worked, he checked that it is an image. What appeared to you was the exit of var_dump ( $_FILES ); In place of echo: "File is an image - " . $check ["mime"] . "." ; You must write…
-
0
votes1
answer449
viewsQ: Array_push in php multidimensional associative arrays
I started an array ($arrDados=array();) and now I need to add information (array_push) so that I can access the information later on as follows: colA1 = $arrDados['NumeroEmpenhoAno']['code']; colA2…
-
2
votes1
answer864
viewsQ: Access information in Multidimensional Associative array (PHP)?
I have the following structure: $arrDados = Array ( [0] => Array ( [NumeroEmpenhoNumero] => Array ( [type] => NULL [size] => 0 [deci] => 0 [code] => 0 ) ) [1] => Array (…