Skip to content
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

Error "Configuration is not in effect" #9

Closed
shashikantkulkarni opened this issue Oct 30, 2019 · 11 comments
Closed

Error "Configuration is not in effect" #9

shashikantkulkarni opened this issue Oct 30, 2019 · 11 comments

Comments

@shashikantkulkarni
Copy link

Hello,

I am trying to use this tool. I am able to run it and see the UI but when I try to add a connection to connect to local dynamodb then while applying the configuration I get an error as "Configuration is not in effect". Local dynamodb instance is running on localhost on port 8000. Please let me know how to fix this error and apply the configuration.
Screenshot 2019-10-30 at 11 16 42 PM

Thank you in advance.
Regards,
Shashikant

@taydy
Copy link
Contributor

taydy commented Oct 31, 2019

hi, Did you set the -cors parameter when starting local dynamodb?

-cors value — Enables support for cross-origin resource sharing (CORS) for JavaScript. You must provide a comma-separated "allow" list of specific domains. The default setting for -cors is an asterisk (*), which allows public access.

you can run
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb to set core *,
or run
java -Djava.l ibrary.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -cors http://localhost:8080

@taydy
Copy link
Contributor

taydy commented Oct 31, 2019

Please let me know if your problem has been resolved.

@shashikantkulkarni
Copy link
Author

shashikantkulkarni commented Oct 31, 2019 via email

@shashikantkulkarni
Copy link
Author

shashikantkulkarni commented Nov 1, 2019

Hello,
It is working as per your suggestion. Thank you.
Can you please add it in your documentation so it will help others if they face this issue.

You can close this issue.

Thanks once again.

@taydy
Copy link
Contributor

taydy commented Nov 4, 2019

Very happy to help you

@taydy taydy closed this as completed Nov 4, 2019
@timothyjeffcoat
Copy link

timothyjeffcoat commented Nov 30, 2021

Another way to overcome CORS trouble is to set the environment variable like the following in the compose.yml of localstack

environment:
- DISABLE_CORS_CHECKS=1

@First-Met
Copy link

hi how to reslove this issue? thanks
I have set the Param "- cors ",but didn't resloved.
java -jar DynamoDBLocal.jar -sharedDb -cors '
' -dbPath ./data -port 8001
Port: 8001
InMemory: false
DbPath: ./data
SharedDb: true
shouldDelayTransientStatuses: false
CorsParams: *

image

@ArchanaNeog
Copy link

ArchanaNeog commented Jul 8, 2023

Cors setup in local DynamoDB running in docker
We can set the cors while running the docker instance as shown below
docker run --name dynamodb -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -cors http://localhost:8080

Initializing DynamoDB Local with the following configuration:
Port: 8000
InMemory: false
DbPath: null
SharedDb: false
shouldDelayTransientStatuses: false
CorsParams: http://localhost:8080

@Stephen0910
Copy link

Is there any other way to solve the problem?
dynamodb is not deployed by me, so I can't change its parameters
Also, it seems that the 2.x version of dynamodb doesn't work even after changing it
Is it possible to access dynamodb without changing its environment parameters, but only changing the content of the project?
Best wishes.

@Stephen0910
Copy link

Is there any other way to solve the problem? dynamodb is not deployed by me, so I can't change its parameters Also, it seems that the 2.x version of dynamodb doesn't work even after changing it Is it possible to access dynamodb without changing its environment parameters, but only changing the content of the project? Best wishes.

by the way, I can directly connect the dynamodb server by cmd: aws dynamodb get-item --table-name...
So I think this is a bug should be fixed in dynamodb-manager.

@Stephen0910
Copy link

I recommend another option to solve the cross-domain problem using a browser plugin.
https://chromewebstore.google.com/detail/cross-domain-cors/mjhpgnbimicffchbodmgfnemoghjakai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants