Git Product home page Git Product logo

Comments (8)

ar4mirez avatar ar4mirez commented on August 29, 2024

Hi @carlok thanks for letting me know, I'm gonna checkout your example and see where is the issue. 👍

from hapi-aws.

cmiranda2012 avatar cmiranda2012 commented on August 29, 2024

@carlok: You are missing .aws. in server.plugins['hapi-aws'].aws.SQS.sendMessage(params)...... We noticed there is an error in the documentation, where we failed to mention its inside of an object called aws. We plan to remove that object in the near future.

from hapi-aws.

carlok avatar carlok commented on August 29, 2024

@cmiranda2012 thanks. I see so it's not going to be backward compatible... ;-( anyhow, let me try it now.

from hapi-aws.

ar4mirez avatar ar4mirez commented on August 29, 2024

@carlok we can do it backward compatible keep .aws and also be available in the root object. at least for the minor patch and give enough time until a major version and then deprecate it.

from hapi-aws.

carlok avatar carlok commented on August 29, 2024

ok thanks. BTW: the script works now but I oddly have to duplicate/keep both options.global and services[0].options to have it work without errors or warnings. I mean, the global with access/secret/region and the sqs options with access/secret/region/apiVersion.

from hapi-aws.

ar4mirez avatar ar4mirez commented on August 29, 2024

can you show the error here please ? So we can take a look. Thanks.

from hapi-aws.

carlok avatar carlok commented on August 29, 2024

sure.
omitting access/secret/region in the sqs options, I get
{ ConfigError: Missing region in config at Request.VALIDATE_REGION (node_modules/aws-sdk/lib/event_listeners.js:80:45) at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:105:20) at callNextListener (node_modules/aws-sdk/lib/sequential_executor.js:95:12) at node_modules/aws-sdk/lib/event_listeners.js:74:9 at finish (node_modules/aws-sdk/lib/config.js:313:7) at node_modules/aws-sdk/lib/config.js:355:9 at resolveNext (node_modules/aws-sdk/lib/credentials/credential_provider_chain.js:107:9) at node_modules/aws-sdk/lib/credentials/credential_provider_chain.js:120:11 at node_modules/aws-sdk/lib/credentials.js:123:23 at node_modules/aws-sdk/lib/credentials/ec2_metadata_credentials.js:78:7 message: 'Missing region in config', code: 'ConfigError', time: 2017-04-18T21:12:00.974Z } { ConfigError: Missing region in config at Request.VALIDATE_REGION (node_modules/aws-sdk/lib/event_listeners.js:80:45) at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:105:20) at callNextListener (node_modules/aws-sdk/lib/sequential_executor.js:95:12) at node_modules/aws-sdk/lib/event_listeners.js:74:9 at finish (node_modules/aws-sdk/lib/config.js:313:7) at node_modules/aws-sdk/lib/config.js:355:9 at resolveNext (node_modules/aws-sdk/lib/credentials/credential_provider_chain.js:107:9) at node_modules/aws-sdk/lib/credentials/credential_provider_chain.js:120:11 at node_modules/aws-sdk/lib/credentials.js:123:23 at node_modules/aws-sdk/lib/credentials/ec2_metadata_credentials.js:78:7 message: 'Missing region in config', code: 'ConfigError', time: 2017-04-18T21:12:00.974Z }

oh BTW: I have had to npm install "joi" to avoid an issue (it it not listed as a dependency but it seems to be needed to start) but this even this afternoon before the beginning of this issue

from hapi-aws.

ar4mirez avatar ar4mirez commented on August 29, 2024

@carlok got it @cmiranda2012 is looking at it 👍 I think is an issue coming from aws-sdk but we can do a quick fix in our end, about the Joi dependency thanks nice catch 👍 she will take care of it.

from hapi-aws.

Related Issues (2)

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.