-
Notifications
You must be signed in to change notification settings - Fork 7
enable enqueue SQS #233
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
enable enqueue SQS #233
Conversation
| } | ||
| }, res -> { | ||
| if (res.failed()) { | ||
| // this.sendInternalServerError(resp, "Failed to queue message: " + res.cause().getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add logging
| JsonObject responseJson = new JsonObject() | ||
| .put("status", "queued"); | ||
|
|
||
| // resp.setStatusCode(200) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add logging
|
|
||
| private void handleReplicate(RoutingContext routingContext) { | ||
|
|
||
| if(this.sqsEnabled){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(this.sqsEnabled && this.sqsClient != null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| String advertisingId = req.getParam(ADVERTISING_ID); | ||
| JsonObject body = routingContext.body().asJsonObject(); | ||
| String traceId = req.getHeader(UID_TRACE_ID); | ||
| String clientIp = body.getString(CLIENT_IP); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
body could be null and cause NPE
String email = body != null ? body.getString(EMAIL) : null;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| } | ||
| }); | ||
| } catch (Exception ex) { | ||
| // this.sendInternalServerError(resp, ex.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add logging ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
…chLab/uid2-optout into ian-UID2-6147-enqueue-requests-sqs merge
No description provided.