-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Running on AWS Lambda #98
Comments
I'm able only to view the open API ui |
Hey @vectorhacker I'm not sure what's causing this off the top of my head but I'll add it to our triage for next week |
I want to say this is closed through an unrelated fix, but we'll need to set this up in a lambda and poke it a bit to confirm |
@sighphyre thanks for letting me know! |
@sighphyre any update on this? |
Hey @vectorhacker, not at the moment, I'm actually on leave at the moment but I've asked a team mate to look into this one tomorrow. Otherwise I'll pick it up on Wednesday |
Hi @vectorhacker one quick question about Setup an http lambda function. How are you setting it up? Manually from AWS console or through a serverless? If it's the latter, maybe you can share the serverless config (after removing the environment values that have your secrets). That'd help me to reproduce this. |
Hi @vectorhacker, I managed to run the proxy using the following code and the config from https://github.com/Unleash/unleash-proxy:
It seems your setup is slightly different and you might be using Typescript, so let me know if this helps you |
We're using a serverless framework to deploy it along side our app. We use sst. |
I'll set it up similarly, we use typescript. |
Is there a reason why you pinned |
The same problem, getting |
This is our proxy stack import { StackContext, use } from '@serverless-stack/resources';
import { ApiStack } from './Api';
export function UnleahProxyStack({ stack }: StackContext) {
const { api } = use(ApiStack);
api.addRoutes(stack, {
'ANY /unleash/{proxy+}': {
authorizer: 'none',
function: 'unleash-proxy/proxy.handler',
},
});
} This is the function handler
|
No particular reason, probably it was there from the example I used to have it up and running. I tested with I set myself to testing with SST, and I managed to reproduce the bug, but the bad news is I have no idea yet what's causing this. I'll have to involve the team to see what's going on. The "good" news is that the issue starts with |
Hi @vectorhacker, long story short, it seems this is a problem with dependency resolution with I believe the way "resolutions": {
"clone-deep": "^4.0.1"
}, I guess this will be solved if jonschlinkert/merge-deep#21 gets merged, but I don't have high hopes on that because there are similar PRs opened in that repo for years. Please, let me know if this works for you. |
I'll try it out! |
Closing due to inativity. |
Describe the bug
I'm getting an error when running unleash proxy behind a lambda function of it not being able to use a functions utils.forOwn. I'm running the proxy behind a lambda function using the
serverless-http
package.Steps to reproduce the bug
Expected behavior
A list of toggles
Logs, error output, etc.
Screenshots
No response
Additional context
I'm utilizing the sst framework, hosting the endpoint behind a /unleash/{proxy+} endpoint through an AWS Api Gateway HTTP API
Unleash version
0.10.4
Subscription type
Open source
Hosting type
Self-hosted
SDK information (language and version)
No response
The text was updated successfully, but these errors were encountered: