this error is showing while adding the user to the database - node.js

[![this is post req][1]][1]
[![schema here][2]][2]
this error is showing while adding the user to the database
[1]: https://i.stack.imgur.com/QvJ6B.png
[2]: https://i.stack.imgur.com/Mpa7J.png
3: https://i.stack.imgur.com/D9GIe.png

Related

jwt_Authenticate Function has entered Try block error

The problem occurs as follows:
I am adding a user. I login after adding a user. After login, when I add items to sell, it throws logine and does not log in again and gives this error.

Uncaught AssertionError: expected [Function] to equal 'reset' in unit test case in nodejs

I am trying to write unit test in nodejs to test forgot password, when I try to create password reset token. Every time it returns a same error when I try to create stub for mongoose document methods using callsFake. here is my code
This is test case
enter image description here
Here is my API
enter image description here
This is my actual method
enter image description here
This is Error message
enter image description here
Please guide me where i am doing mistake...Thanx

I am getting the validation to fail error even though I have given all required

I am getting the validation to fail error even though I have given all required items/parameters to the body then also it gives an error ...
schema model restaurant:
restaurant API Router for the posting :
main server index :
if any one faced same issue or if it resolved please do share with me
because i am also facing validation error event i have provide
required body items then also it is giving me validation error ...
but if i removed "mapLoaction" from schema then it was work well but
when mapLoaction is added in schema then it gives the validation
error .please look inti my issue ..
*i see some old solution but no result because they are so old 5-6 yeas agos questions.
same issue while posting othere data schemamodels also gives validation error

Impex Error at referencing vm file

I am trying to create impex for email page.
$contentCatalog=ShopzoneContentCatalog
$contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
$jarResourceCms=jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view
$emailResource=jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails
$emailPackageName=com.shopzone.facades.process.email.context
Email velocity templates
INSERT_UPDATE RendererTemplate;code[unique=true];description[lang=en];templateScript[lang=en,translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator];contextClass;rendererType(code)[default='velocity']
;appointment_notification_email_subject;"Appointment Notification Email Subject";$emailResource/appointment_notification_email_subject.vm;$emailPackageName.AppointmentEmailContext;
;appointment_notification_email_body;"Appointment Notification Email Body";$emailResource/appointment_notification_email_body.vm;$emailPackageName.AppointmentEmailContext;
Email page Template
INSERT_UPDATE EmailPageTemplate;$contentCV[unique=true];uid[unique=true];name;active;frontendTemplateName;subject(code);htmlTemplate(code);restrictedPageTypes(code)
;;appointmentNotificationEmailTemplate;Appointment Notification Email Template;true;appointmentNotificationEmailTemplate;appointment_notification_email_subject;appointment_notification_email_body;EmailPage
Templates for CMS Cockpit Page Edit
UPDATE EmailPageTemplate;$contentCV[unique=true];uid[unique=true];velocityTemplate[translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator]
;;appointmentNotificationEmailTemplate;$jarResourceCms/structure_appointmentNotificationEmailTemplate.vm
Media
insert_update Media;code[unique=true];$contentCV;url;mime[default='image/jpg'];altText
;szEmailSiteLogoMedia;;/_ui/responsive/common/images/site_logo.png;;Shopzone
CMS Image Components
INSERT_UPDATE CMSImageComponent;$contentCV[unique=true];uid[unique=true];name;media(code, $contentCV)
;;szEmailSiteLogoImage;Email Site Logo Image;szEmailSiteLogoMedia
Content Slots
UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];cmsComponents(uid,$contentCV)
;;szEmailSiteLogoSlot;szEmailSiteLogoImage
Bind Content Slots to Email Page Templates
INSERT_UPDATE ContentSlotForTemplate;$contentCV[unique=true];uid[unique=true];position[unique=true];pageTemplate(uid,$contentCV)[unique=true];contentSlot(uid,$contentCV)[unique=true];allowOverwrite
;;siteLogo-appointmentNotificationEmailTemplate;szSiteLogo;appointmentNotificationEmailTemplate;szEmailSiteLogoSlot;true
Email Page
INSERT_UPDATE EmailPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$contentCV);defaultPage;approvalStatus(code)[default='approved'];fromEmail[lang=en];fromName[lang=en]
;;appointmentNotificationEmailPage;Appointment Notification Email;appointmentNotificationEmailTemplate;true;;estore#shopzone.com;Customer Services Team
ERROR :
INSERT_UPDATE RendererTemplate;code[unique=true];description[lang=en];templateScript[lang=en,translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator];contextClass;rendererType(code)[default='velocity']
,8796125836191,,, column 3: cannot resolve value 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm' for attribute 'templateScript', column 3: cannot resolve value 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm' for attribute 'templateScript';appointment_notification_email_body;Appointment Notification Email Body;jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm;com.shopzone.facades.process.email.context.AppointmentEmailContext;
,8796125868959,,, column 3: cannot resolve value 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm' for attribute 'templateScript', column 3: cannot resolve value 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm' for attribute 'templateScript';appointment_notification_email_subject;Appointment Notification Email Subject;jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm;com.shopzone.facades.process.email.context.AppointmentEmailContext;
UPDATE EmailPageTemplate;catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged][unique=true];uid[unique=true];velocityTemplate[translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator]
,8796420736052,,, column 3: cannot resolve value 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm' for attribute 'velocityTemplate', column 3: cannot resolve value 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm' for attribute 'velocityTemplate';;appointmentNotificationEmailTemplate;jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm
UPDATE ContentSlot;catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged][unique=true];uid[unique=true];cmsComponents(uid,catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged])
,,,no existing item found for update;;szEmailSiteLogoSlot;szEmailSiteLogoImage
INSERT_UPDATE ContentSlotForTemplate;catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged][unique=true];uid[unique=true];position[unique=true];pageTemplate(uid,catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged])[unique=true];contentSlot(uid,catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged])[unique=true];allowOverwrite
,,,error finding existing item : column='contentSlot' value='szEmailSiteLogoSlot', , column 5: could not resolve item for szEmailSiteLogoSlot;;siteLogo-appointmentNotificationEmailTemplate;szSiteLogo;appointmentNotificationEmailTemplate;szEmailSiteLogoSlot;true
02.11.2017 15:35:02: ERROR: Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 5 lines!
02.11.2017 15:35:02: ERROR: Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 5 lines!
When you reference files, you need to reference them starting with the "resources" directory as your root directory.
$jarResourceCms=jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/import/cockpits/cmscockpit/structure-view $emailResource=jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/import/emails

Error When Trying to Save a DateTime Value

I'm trying to save a DateTime value on the Notes document with DominoToGo. I've tried the following:
var testDate = "12/31/2014";
doc.replaceItemValue("DueDate", testDate, "datetime");
doc.save(true);
This gives me a message in the console:
[INFO] : 09:06:08: NotesDocument.save: new value in XML: 12/31/2014
[INFO] : 09:06:08: NotesDatabase.uploadChanges: FAIL: no response from server. Looks like there is a problem. Check server and Domino To Go XPages.
Any ideas of what I need to check? Thanks in advance.
there was a bug in ynmobile_write.xsp, I fixed it and will send you the updated code via mail!

Resources