Tag: tag
-
Curl API call in PHP
1 I’m new to PHP and trying to make a request to a third-party API using curl. This is what I am trying, but it is just responding with what is on the API’s root endpoint. $service_url = ‘https://api.kivaws.org/graphql’; $curl = curl_init($service_url); $curl_post_data = array( ‘Pragma’ => ‘no-cache’, ‘Origin’ => ‘https://api.kivaws.org’, ‘Accept-Encoding’ => ‘gzip, deflate’,…
-
Unexpected LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413 error
14 So I have a serverless express application running in a Lambda. One request (response size around 800KB) keeps returning a LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413. error. I thought it could be due to some internal logic timing out, and added logs, and all the fetch and processing takes…
-
How do I split a string by a character without ignoring trailing split-characters?
7 I have a string similar to the following my_string <- "apple,banana,orange," And I want to split by , to produce the output: list(c(‘apple’, ‘banana’, ‘orange’, "")) I thought strsplit would accomplish this but it treats the trailing ‘,’ like it doesn’t exist my_string <- "apple,banana,orange," strsplit(my_string, split = ‘,’) #> [[1]] #> [1] "apple"…
-
AWS AppSync Subscription to Mutation with object as input struggle
0 I want to create an EventBridge Rule that should trigger a a GraphQL Subscription over Appsync. Everything worked fine until I changed Service from an object to a string. My GraphQL Schema looks like this: input nestedObjectInput { A: String B: String } type simpleReturn { Name: String Service: nestedObject } type Mutation {…
-
React-native AWS amplify graphQl Subscription
0 In my react native project, I am using graphQl subscription with aws-amplify. The problem is it’s not getting notified/called when the backend sends a notification. The backend developer told me, that from their side notification is sending correctly. Now from the Front end side setup is also properly done because one other subscription is…
-
Label Dimension Mismatch for GitHub action graphql API query
0 Currently running into an issue where this line of code creates the following error. Code for GitHub action (.yml file) if: steps.filter.outputs.patterns == ‘true’ run: | item_id="$( gh api graphql -f query=’ mutation($issueid:ID!, $labels:[ID!]) { updateIssue(input: {labelIds: [$labels], id: $issueid}) { issue { id } } }’ -f labels="my_label_code" -f issueid=$ISSUE_NODE_ID)" Error code: gh:…
-
Fooling R’s Method Dispatch
6 I am looking for an example where a dot in a function name causes R’s Method Dispatch to pick the wrong function. A natural candidate seems to be the builtin function t.test(), which should be confused with t() when applied to an object of class "test". Strangely, however, the following code actually calls the…
-
How to sort the list in nested query result in an AWS Amplify application
0 I am new to GraphQL and looking for some assistance in understanding how I could go by to sort the results of a nested query. I have a schema as below, based on the documentation here – https://docs.amplify.aws/guides/api-graphql/query-with-sorting/q/platform/js/ type Segment @model { id: ID! name: String! order: Float! type: String! @index(name: "byOrder", queryField: "segmentByOrder",…
-
GraphQL schema for DynamoDB
0 I’m using DynamoDB and want to create a database with GraphQL API. How do I have to define my schema so my partition key is userID and my sort key is MMYY. Every userID has a lot of MMYY, and every MMYY has entries which are just some data. I want all of these…
-
Looking for a guide to access AWS Appsync Graphql api from NodeJS app via http request
-1 There is currently, to my knowledge, no one guide that walks through this process so I’d like to find one that can be extended upon and commented on by others who may have extra security "best practices" and the likes to contribute. node.js graphql amazon-iam aws-amplify aws-appsync Share Improve this question Follow edited Aug…