Skip to content

Instantly share code, notes, and snippets.

View back2debug's full-sized avatar

Tracey M back2debug

  • New York
View GitHub Profile

SEARCH

history | grep what you are looking for

find / -name


REDIRECT TO BLACK HOLE

AWS

confirm you have logged in successfully to aws

aws sts get-caller-identity


NPX NPM

  • npx rdme docs ./documentation --key=$README_API_KEY --version=v1.9.8-DEX

  • npx rdme categories --version=v1.9.8-DEX --key=$README_API_KEY

  • npm run publish:rdme runs a helper script "publish:rdme": "./publish.sh --rdme && npx rdme openapi index.yml --id=$(npm run createVersion --silent --majorversion=1 --trace-uncaught) --key=$README_API_KEY --workingDirectory ./v1"


PSQL

create a database

  • psql postgres -c 'createdb traceymartin'
  • or whatever db name it tells you it can't find

#setting up zendesk model copied some of the blendo Zendesk block
#https://looker.com/platform/blocks/source/zendesk-analytics-by-blendo
explore: zendesk_tickets {
join: zendesk_groups {
type: left_outer
sql_on: ${zendesk_tickets.group_id} = ${zendesk_groups.id} ;;
relationship: many_to_one
}
join: zendesk_users {
Change bold html:{% if value == 'SUBTOTAL' %}SUBTOTAL{% else %} {{ linked_value }}{% endif %};;
group a dimension if(${products.brand} = offset(${products.brand},-1),"",${products.brand})
get the counts for changes in the dimension
if(match(${products.brand},${products.brand})=offset(match(${products.brand},${products.brand}),-1) , 1+row()-match(${products.brand},${products.brand}) , 1)
get the subtotal
if(
//THIS IS MINE TM
var columnNames = Object.keys(data[0]);//get the column names into an array
for (var name in columnNames){
datagrid.addColumn(columnNames[name],datagrid.DATA_TYPE_STRING);//addColumn header name for grid
}
//TAG VALUE and AOI ARE ARRAYS & CANNOT ADD ARRAY TO CELL
//SO IF [] then space and .join otherwise
for (var response in data){ //for each response
var feedback_details = Object.values(data[response]); //store in an array
for (var detail in feedback_details){ //go through each response
5xx errors
Probably a timeout
Can you see evidence of a request in the logs (web layer) or do you see evidence of a hole where they seem to have missed a call if they send multiple calls
Could be they made ran into an error on their end and never made it our servers at all
Do they have retries set up
Does the payload meet size requirements
A gateway timeout could be something ephemeral like unlucky timing with one of our deployments or something
package main
import (
"bufio"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
)
  • git pull
  • make sure node is 20.11.1
  • bun install
  • export statement
  • bun build command
  • run the dev client

Build error tips