-
Notifications
You must be signed in to change notification settings - Fork 726
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
AWS SNS event source crash with error "http: panic serving : runtime error: invalid memory address or nil pointer dereference" #1182
Comments
Closing it as it was configuration issue on ingress. I had not mentioned health check path /health. After updating to reflect as mentioned in the doc its registering healthy as expected |
@sanandan - thanks for the update, glad to hear it works for you! Even though you are good with it, I want to confirm that when you hit the endpoint with a curl, the pod panics, right? I think that's also an issue we need to fix. |
yes when i curl -eventsource-svc:12000 the panic happened. |
Signed-off-by: Derek Wang <whynowy@gmail.com>
@whynowy Please let me know if you need me to reopen this issue. |
@sanandan - thanks, I already put a fix there |
Put environment variable |
@whynowy I'm able to set debug_log env variable for eventsource-controller deployments and logs are showing all levels. But since the sns event source deployment is created by eventsource-controller, i'm not able to setup the logs for debug level. |
Setting the env in EventSource |
apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
name: aws-sns
spec:
service:
ports:
- port: 12000
targetPort: 12000
sns:
snowemail:
topicArn: arn:aws:sns:us-east-1:xxxxx:sns-argo-events
webhook:
endpoint: "/"
port: "12000"
method: POST
url: https://xxxxx.execute-api.us-east-1.amazonaws.com
region: us-east-1
template:
container:
env:
- name: DEBUG_LOG
value: 'true' Even still not getting full log. If i can the subscribe url from the sns confirmation msg then , i should be maually confirm the subscription and test the sns events. Unable to proceed further. The SNS subscription shows as pending. |
Do you have the URL The logic here is kind of tricky. So for |
And you can reference to your current |
Thankyou @whynowy it was sec group config issue. i'm able to publish and view the messages in the log :) |
👍 |
…oj#1185) Signed-off-by: Derek Wang <whynowy@gmail.com>
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
HTTP Health check or curl to sns-event-source service should return 200. So the pod can register as healthy under the target group to confirm subscription from SNS
Screenshots
![image](https://user-images.githubusercontent.com/60088592/115608909-7bf85100-a304-11eb-8a33-8b5ab9e0a540.png)
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: