Comments (19)
@okbel The problem is not with the demo site. The problem occurred when I deployed vercel commerce repo on my vercel account. I still have a problem, but the deployed repo is 8d old, and I'm running into some deployment problem (hook, module etc.) so I cannot test it now.
Hi, did you get this working? I'm seeing the same thing on my deployment.
from commerce.
Hi, I'm not sure if it helps, but here are my 2 cents on this:
The user is created successfully without any problems. However, when the login request is performed against the graphql endpoint (...framework/bigcommerce/api/customers/handlers/signup.ts), we're getting the following result:
`graphql url = https://store-mhqee6hrg4-486614.mybigcommerce.com/graphql
query =
mutation login($email: String!, $password: String!) {
login(email: $email, password: $password) {
result
}
}
variables = {
email: '[email protected]',
password: 'somepassword'
}
response json = {
"data": null,
"errors": [
{
"message": "Internal server error",
"path": [
"login"
],
"locations": [
{
"line": 3,
"column": 5
}
]
}
]
}
`
On the other hand, the same problem occurs using the storefront api playground with the correct token (others requests works).
After some search, I've found this discussion https://support.bigcommerce.com/s/question/0D54O00006Sy9ecSAB/im-having-difficulty-with-the-storefront-graphql-customer-login, but it was inconclusive because resetting the customer password didn't work for me.
from commerce.
Ok, I could revisit this today and I've found the issue.
You just need to go to your store settings page [youstore].mybigcommerce.com/manage/settings/store and disable maintenance mode.
Although signup works, singing in while in maintenance mode returns this error with no context.
cc: @gr-qft I believe you can close this issue now.
Regards.
from commerce.
@okbel I still have not been able to sign up, still seeing the same message (my password surely is longer than 7 chars and includes numbers).
from commerce.
Hi,
I also still have the same issue. My .env.local file has been fetch using "vercel env pull .env.local", and everything runs fine on Vercel and locally, but I can't Signup / Signin...
Any idea?
Thanks!
Error: Internal server error
at FetcherError.CommerceError [as constructor] (/Users/rkalfane/Workspace/commerce-4/node_modules/@bigcommerce/storefront-data-hooks/commerce/utils/errors.js:35:24)
at new FetcherError (/Users/rkalfane/Workspace/commerce-4/node_modules/@bigcommerce/storefront-data-hooks/commerce/utils/errors.js:47:28)
at /Users/rkalfane/Workspace/commerce-4/node_modules/@bigcommerce/storefront-data-hooks/api/utils/fetch-graphql-api.js:75:31
at step (/Users/rkalfane/Workspace/commerce-4/node_modules/@bigcommerce/storefront-data-hooks/api/utils/fetch-graphql-api.js:44:23)
at Object.next (/Users/rkalfane/Workspace/commerce-4/node_modules/@bigcommerce/storefront-data-hooks/api/utils/fetch-graphql-api.js:25:53)
at fulfilled (/Users/rkalfane/Workspace/commerce-4/node_modules/@bigcommerce/storefront-data-hooks/api/utils/fetch-graphql-api.js:16:58)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
errors: [
{
message: 'Internal server error',
path: [Array],
locations: [Array]
}
],
status: 200
}
from commerce.
I'm having this problem too:
@gr-qft if you check in the bigcommerce - customers panel you will see your user has been created. I believe the problem is when logging in. (in this case probable after user is being created)
@okbel The sign-in hook is returning invalid credentials (error 400 : bad request) but the API request is returning an error 500. POST http://localhost:3000/api/bigcommerce/customers/login 500 (Internal Server Error). Not sure why because it looks the params are being passed correctly... I didn't have time to check the @bigcommerce npm package yet.
from commerce.
@okbel The problem is not with the demo site. The problem occurred when I deployed vercel commerce repo on my vercel account. I still have a problem, but the deployed repo is 8d old, and I'm running into some deployment problem (hook, module etc.) so I cannot test it now.
Hi, did you get this working? I'm seeing the same thing on my deployment.
I am having the same issue, unfortunately. Any advice on this?
from commerce.
@wtLau like error says, customer accounts are disabled. You have to enable it on Shopify.
https://help.shopify.com/en/manual/customers/customer-accounts
from commerce.
We just added an .env.template. Have you tried that? LMK!
from commerce.
@gr-qft What data are you giving to sign up?
And yes, auth has been implemented. Try https://demo.vercel.store to check it out live.
Yeah, @frannunezrivera it's using those hooks so I think it may be masking some errors with the password lengths and criteria
from commerce.
@okbel The problem is not with the demo site. The problem occurred when I deployed vercel commerce repo on my vercel account. I still have a problem, but the deployed repo is 8d old, and I'm running into some deployment problem (hook, module etc.) so I cannot test it now.
from commerce.
mm yeah. I am facing the same problem as @gr-qft.
Repo deployed 2 days ago, testing on local.
.env areismatching that of Vercel's env vars.
from commerce.
@rezakalfane Did you ever figure this out or hear anything back? I'm having this same issue locally as well.
from commerce.
@rezakalfane Did you ever figure this out or hear anything back? I'm having this same issue locally as well.
No, not yet... Maybe some authorization issues in my BigCommerce config... Everything works on the Vercel instance?
from commerce.
Seems heavily related to BigCommerce, but could you put a debugger there to at least see the error coming back from BC? cc @rezakalfane
from commerce.
Up
from commerce.
@frannunezrivera Thanks a lot for the hint, I've not had a chance to come back to this issue but I'll close it now.
Best!
from commerce.
Hi
I think sign up is not working again even on the live demo site https://demo.vercel.store
On the live demo site, I am receiving 500 status code with message: "An unexpected error occurred"
when signing up with a new account.
On my local site, I am using Shopify Storefront API. And I am getting Customer accounts are disabled.
when I tried to sign up.
from commerce.
@cond0r Thx! Never used Shopify before.... thought its a client error
from commerce.
Related Issues (20)
- Policies have broken link: 500 error HOT 2
- Missing Social Media icons HOT 2
- Feature Request: Change Price and Image when selecting variant HOT 2
- GraphQl descriptionHtml vs Webhook API body_html
- Home page elements on https://demo.vercel.store HOT 7
- Branding changes do not reflect HOT 2
- Wrong navigation/pages path HOT 1
- Cost marking all components edge rundtime? HOT 2
- Overflowed Search on Tablet HOT 2
- How to add product metafield data HOT 2
- Proceeding to checkout gives 500 [GET] /cart/c/c1-abcd?key=1234 status=500 HOT 5
- View Page/Product always gives 500 HOT 3
- getCollectionProducts always get 500, SocketError: other side closed
- Slow loading of images on product page HOT 2
- Code for Cart Discount
- Implementation of Shopify analytics HOT 1
- Products not showing in category page
- Hidden: Homepage Featured Items not reflecting on live site HOT 2
- Error in Add to Cart and Edit Cart Form HOT 1
- sitemap.xml & robots.txt points to Vercel's domain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commerce.