question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adapter-api does not support headers inputType

See original GitHub issue

Description

The @laconia/adapter-api package does not support the headers inputType from the ApiGatewayEvent.

Is your feature request related to a problem? Please describe. No, there is a work around with the @laconia/event package.

Describe the solution you’d like [optional] It would also be nice to provide the whole ApiGatewayEvent instead of just a specific inputType or at least a way to receive headers.

Additional context Scanning through #124 they seem partially related.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kirbyjscommented, Nov 9, 2021

Your app function will be called with headers, like this: master/packages/laconia-adapter-api/test/ApiGatewayEventAdapter.spec.js#L60

I noticed this option the other day which was pretty slick! Also didn’t know about the includeInputHeader! 👍🏼 That’s good to know and might look into adding that into the docs! I have an incoming PR that I’ve been working on to improve upon the current types.

I still think it might be a good idea to just allow providing the full APIGatewayEvent to future proof the adapter. But it seems that from you comment that everything is currently supported, so feel free to close this issue 😃

0reactions
ceilforscommented, Nov 10, 2021

That’s great! I’ll close this issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ability to create an adapter dynamically · Issue #124 - GitHub
For example when creating an API endpoint, users are unable to create PUT or PATCH ... adapter-api does not support headers inputType #812....
Read more >
Creating API Endpoints - Laconia
The requests that are coming in are function arguments, the response that goes out is a return statement. This means Laconia does not...
Read more >
getting error of Access-Control-Allow-Origin header
Hope you will get how to solve your problem try { $headers = array( 'Content-Type: application/json', ); $ch = curl_init(); $options ...
Read more >
Oracle JCA Adapter for UMS - 11g Release 1 (11.1.1.7.0)
Note that the UMS Adapter does not support XA Transactions on the Outbound ... You cannot set and get headers with Keyword headers...
Read more >
InputType - Android Developers
Note that some input methods may not support it, for example a voice-based input method will likely not be able to generate key...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found