Urgent: Is anyone having issues when adding to ca...
# suitecommerce
b
Urgent: Is anyone having issues when adding to cart? I see the error in the live order service. Help!!!!
s
What error?
b
Yesterday night we can't add to cart. This morning i see the live order service returning this { "errorStatusCode": "400", "errorCode": "UNEXPECTED_ERROR", "errorMessage": "An unexpected SuiteScript error has occurred" }
m
Do you have any other information? All items are failing? Did you check the SSP logs ?
🙌 1
b
Will do that now.
No errors.
I am not sure why but i just noticed that we do not have that ssp deployed to our site shopping or checkout just our domain.
Just thought i mentioned it.
Yes, all items i have tried are failing.
m
I was trying to see the issue but the site has login to see price and i can't register also 😞
b
Ah yes. 😞
Int he Script Execution log i see some errors.
ERROR_SSP_LIBRARIES_EXT "{\"userEvent\":null,\"internalId\":null,\"code\":\"ERR_WS_REQUIRE_CUSTOMER_LOGIN\",\"details\":\"Address book is not accessible. Please log in first.\",\"stackTrace\":{\"[Ljava.lang.String;\":[\"<anonymous>(ssp_libraries_ext.js:510)\",\"<anonymous>(ssp_libraries.js:251)\",\"<anonymous>(ssp_libraries.js:18)\",\"<anonymous>(ssp_libraries_ext.js:5647)\"]},\"type\":\"nlobjError\",\"suppressNotification\":false}"
m
the error appears again when you try to add to cart ?
b
Yeah, oyyyy.
m
Captura de pantalla 2024-12-11 a la(s) 10.10.16.png
b
Oh yay! Which tab did you go to?
Sources?
m
ssp_libraries_ext.js:5647
i think that could be or some missing permission or you are trying to access to the user address book without been loggedin
on that module there is a addressCount = ModelsInit.customer.getAddressBook();
b
Martin, where did you find that file ssp_libraries_ext.js can't find it.
This file is created by the Activation manager
You can located on the file cabinet on the SSP Folder
b
Ah yes lol
I was looking in the website.
I do not see the code you shared in your screenshot.
It is happening too using the src.
m
in that case coudl be some permission missing on the customer role
b
As a user?
Like a regular customer account?
m
when a customer access to the webiste it has a role assingated based on your configuration
i was refering to that role
b
Ok let me check on that, thank you.
No not the role issue.
m
The address code is new or has been changed recently ?
b
Nope.
So this is the issue i see: "{\"userEvent\":null,\"internalId\":null,\"code\":\"ERR_WS_REQUIRE_CUSTOMER_LOGIN\",\"details\":\"Address book is not accessible. Please log in first.\",\"stackTrace\":{\"[Ljava.lang.String;\":[\"(ssp_libraries_ext.js:510)\",\"(ssp_libraries.js:251)\",\"(ssp_libraries.js:18)\",\"(ssp_libraries_ext.js:5647)\"]},\"type\":\"nlobjError\",\"suppressNotification\":false}"
Maybe the user role permissions changed?
Somehow?
m
yes that could be an option
you can add some logs to see where is exactly the issue
b
It just broke in prod yesterday night, what could have changed!
m
Without seeing the backend or have access to site, is difficult to tell 😢
f
Are you using a custom Customer Center role or the NetSuite default one?
b
Hi!
Customer center but the issue was that a promotion was configured wrongly and was killing the whole site 🤦‍♀️
f
wooow… interesting
b
I know!
It was wild lol but everything is back to normal now.
👍🏻 1
m
The are some issues with Advanced Promotions, we already have issues with other customers, that was preventing the add to cart
s
@Berenice Domínguez Was this SuitePromotions or Advanced Promotions? And how was it configured incorrectly?
b
Was reading a customer's saved search.
s
Could you elaborate? Ultimately, I would like to know how I could recreate this so I can see if it's something I need to report to the owning team