What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hii Team , I am using glue api using postman with the d
Hii Team ,
I am using glue api using postman http://glue.de.spryker.local/access-tokens
with the data {
"data": {
"type": "access-tokens",
"attributes": {
"username": "<mailto:sonia1@spryker.com|sonia1@spryker.com>",
"password": "change123"
}
}
}
Its give me error
{
"errors": [
{
"code": "003",
"status": 401,
"detail": "Failed to authenticate user."
}
]
}
But i can login from the same credential on storfront
Comments
-
Just a guess: seeing how you're using type "access-tokens", aren't you missing a token or suchlike from "attributes"?
0 -
can not understand what are you saying
0 -
You use this:
{ "data": { "type": "access-tokens", "attributes": { "username": "<mailto:sonia1@spryker.com|sonia1@spryker.com>", "password": "change123" } } }
But shouldn't you also have:
with the data { "data": { "type": "access-tokens", "attributes": { "username": "<mailto:sonia1@spryker.com|sonia1@spryker.com>", "password": "change123", "token": "sometokenvalue", } } }
?
0 -
i am using the same
{ "data": { "type": "access-tokens", "attributes": { "username": "<mailto:sonia1@spryker.com|sonia1@spryker.com>", "password": "change123" } } }
but then also give the error
0 -
there is only one end point to login as a customer through glue API or we can have more as well , like 'access-tokens' can we have more endpoint to access the customer login
0 -
can you please guide me what can be the error
0 -
I was just guessing, sorry - I haven't used this part of Spryker yet.
0 -
ok thanks
0 -
-
Is this happening on dev environment?
If so, you might have an issue with oauth client credentials (might have happened if you tried running docker/sdk boot without DB reset). You can try that
0 -
yes it is in dev environment
0 -
Hey , i done that thing and as i run docker/sdk up it shows error and stop
[application-production-codebase 8/9] RUN vendor/bin/install -r docker -s build -s build-production -vvv:
18 1.201
18 1.201 Fatal error: Uncaught Spryker\Shared\Kernel\CodeBucket\Exception\InvalidCodeBucketException: CodeBucket "INDIA" is not a valid option! in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php:50
18 1.201 Stack trace:
18 1.201 #0 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php(30): Spryker\Shared\Kernel\CodeBucket\Config\AbstractCodeBucketConfig->assertCodeBucket('INDIA')
18 1.201 #1 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/CodeBucketConfig.php(40): Spryker\Shared\Kernel\CodeBucket\Config\AbstractCodeBucketConfig->getCurrentCodeBucket()
18 1.201 #2 /data/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php(93): Spryker\Shared\Kernel\CodeBucket\Config\CodeBucketConfig->getCurrentCodeBucket()
18 1.201 #3 /data/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php(25): Spryker\Shared\Config\Application\Environment::defineCodeBucket()
18 1.201 #4 /data/vendor/spryker/install/bin/install(28): Spryker\Shared\Config\Application\Environment::initialize()
18 1.201 #5 /data/vendor/bin/install(120): include('/data/vendor/sp...')
18 1.201 #6
18 1.201 thrown in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php on line 50
18 1.201 [28-Mar-2023 04:53:07 UTC] PHP Fatal error: Uncaught Spryker\Shared\Kernel\CodeBucket\Exception\InvalidCodeBucketException: CodeBucket "INDIA" is not a valid option! in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php:50
18 1.201 Stack trace:
18 1.201 #0 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php(30): Spryker\Shared\Kernel\CodeBucket\Config\AbstractCodeBucketConfig->assertCodeBucket('INDIA')
18 1.201 #1 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/CodeBucketConfig.php(40): Spryker\Shared\Kernel\CodeBucket\Config\AbstractCodeBucketConfig->getCurrentCodeBucket()
18 1.201 #2 /data/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php(93): Spryker\Shared\Kernel\CodeBucket\Config\CodeBucketConfig->getCurrentCodeBucket()
18 1.201 #3 /data/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php(25): Spryker\Shared\Config\Application\Environment::defineCodeBucket()
18 1.201 #4 /data/vendor/spryker/install/bin/install(28): Spryker\Shared\Config\Application\Environment::initialize()
18 1.201 #5 /data/vendor/bin/install(120): include('/data/vendor/sp...')
18 1.201 #6
#18 1.201 thrown in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php on line 50
executor failed running [/bin/sh -c vendor/bin/install -r ${SPRYKER_PIPELINE} -s build -s build-production -vvv]: exit code: 255
0 -
hey @UQKSAARKN i have run that command but the issue is still remain can you please suggest me better option
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random