Code Monkey home page Code Monkey logo

ask-around-me's Issues

ERR_TOO_MANY_REDIRECTS

When I try viewing the production site, I get the following error:

image

I have tried using my local code that works and commited to CodeCommit and also using Github. Any ideas/suggestions?

access_denied

When I try running the application locally and click the log in button, the url in the browser has the following value:

http://localhost:8080/?error=access_denied&error_description=Service%20not%20found%3A%20https%3A%2F%2Fauth0-jwt-authorizer&state=Mm5Fdi1mVjNvdldwY1p0dGNNeU5tcDlPblJqOW14Mi1fNmVDV213YlljVA%3D%3D

=======================
Debug window has this info:

asyncToGenerator.js?1da1:6 Uncaught (in promise) {error: "access_denied", error_description: "Service not found: https://auth0-jwt-authorizer", state: "MU9sfkljVUlQVElVSmR6Q05KRzVQbjhDejBfYS1yamxnSjUyQ2gwYl80TQ=="}error: "access_denied"error_description: "Service not found: https://auth0-jwt-authorizer"state: "MU9sfkljVUlQVElVSmR6Q05KRzVQbjhDejBfYS1yamxnSjUyQ2gwYl80TQ=="proto: Object
asyncGeneratorStep @ asyncToGenerator.js?1da1:6
_throw @ asyncToGenerator.js?1da1:29
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js?1da1:13
_next @ asyncToGenerator.js?1da1:25
eval @ asyncToGenerator.js?1da1:32
eval @ asyncToGenerator.js?1da1:21
updateResults @ HomeView.vue?409a:166
navigator.geolocation.getCurrentPosition.enableHighAccuracy @ HomeView.vue?409a:150
stream.js?553e:64 WebSocket connection to 'wss://no-credentials-available/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

Any thoughts / suggestions?

Thanks,

Bill

Idempotency Concern in ProcessAnswersStreamFunction

Description:

I would like to kindly bring attention to a potential issue with the ProcessAnswersStreamFunction, which is invoked when incoming star rating answers or geo answers enter the DynamoDB through either ProcessAnswerStarFunction or ProcessAnswerGeoFunction. In the star.updateQuestionsTable and geo.updateQuestionsTable methods, the program uses the Dynamo’s ADD UpdateExpression to change the absolute count of star rating answers or geo answers. However, this implementation is not idempotent. Suppose when the function is invoked, the star rating of a specific answer is increased by 1; if the function crashes and retries, the star rating will be increased again by 1. This is not desired, as it duplicates the user's action (starring the answer) at untimely retries.

Suggested Fix:

To address this issue, please consider adding a LastRequestId field to the record that logs the most recent lambda's request id, and use a ConditionExpression along with the original ADD UpdateExpression. Specifically, only if context.aws_request_id != item.LastRequestId, apply the star rating change and update the LastRequestId field. This approach should help ensure idempotency and improve the reliability of the ProcessAnswersStreamFunction since the request id is constant across retries.

Thank you for considering this issue. I hope my suggestion proves helpful in enhancing the reliability and idempotency of the ProcessAnswersStreamFunction. Please don't hesitate to reach out if you have any questions or concerns.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.