-
How can I use environment variables in lambda functions?
How can I use environment variables in lambda functions? In my Workspace Settings I created a env called "apiKey".How can I use it in the code of my Lambda Function? If I try to log it or use it its always undefined. In the docs it says u can use it everywhere. I also tried $var.apikey and $apiKey. 😒plz help…
-
message: Unable to locate input
No matter what I do I get this using lambda functions: My code: It should return true…
-
Create Image from buffer?
Hey! I'm doing an external API call to get the image. Then I would like to create an image based on the result of the request. When I'm passing a random URL of the image to "Create Image Metadata" like this: Everything works fine, but I can't pass the directly URL to "Create Image Metadata" because the request that I'm…
-
All lambdas are down
Hi, I don't have any lambda's working on my workspace anymore... what's going on with the lambdas? I tested a small lambda that returns a simple string and I still get this message: Promise timed out after 10000 ms does anyone have the same problem?
-
How do I apply lambda to each item in a loop?
I have this snippet saved as a lambda function: const accentedCharacters = 'áàãâäéèêëíìîïóòõôöúùûüñçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÔÖÚÙÛÜÑÇ' const normalCharacters = 'aaaaaeeeeiiiiooooouuuuncAAAAAEEEEIIIIOOOOOUUUUNC' let text = $var.sample.replace(/[áàãâäéèêëíìîïóòõôöúùûüñçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÔÖÚÙÛÜÑÇ]/g, match =>…
-
Support for asynchronous function stack statements
Hello, Would it possible to provide an example of how to run statements in parallel through Lambda Promises? For my usecase, I'm trying to respond an immediate 200 OK response to the Slack API (must be within 3 seconds) before continuing the rest of my function (that takes about 10 seconds). Without the immediate 200 OK…
-
In lambda crypto.getRandomValues is not a function
I don't understand why
-
Post with array input cannot have lambda in function stack?
I have a POST endpoint that is ingesting webhooks from a third party (wrike). The payloads are a single array like this: [ { "title": "Follow up on status of RFI with Architects", "taskId": "IEACIWZSKQZGQVIU", "oldValue": "Follow up on status of RFI with Architect", "eventType": "TaskTitleChanged", "webhookId":…
-
How do I keep the extra whitespace when using substring when looping through an array?
I have a sample file above that is downloaded and parsed in xano. I will get “RECORDS” and save it as “Row1”, the client data as “Row2”, and “END” as “Row3”. Now I'll loop through Row2 per client. I did this by slicing the client data as “Row2” so I can loop through each client data. The client data is separated by a new…
-
Cannot find module 'axios'
Hi everyone! I am trying to run the following Lambda code, but it returns the error as described in the title. Is this not possible, or am I doing something wrong? I believe that the Axios library is included in Xano. const axios = require('axios'); const chessUrl = 'https://api.chess.com/pub';const user = input.username;…