dimaportenko / magento-react-native

React Native mobile app for Magento 2.x
MIT License
297 stars 158 forks source link

Error: JSON Parse error: Unrecognized token '<' #104

Closed sid-metiz closed 5 years ago

sid-metiz commented 5 years ago

I Change Base Url and Change token And run the app.. Its giving me Error like

[SyntaxError: JSON Parse error: Unrecognized token '<'] LOG [Error: JSON Parse error: Unrecognized token '<'] device-2019-12-04-125448 device-2019-12-04-125541

sanjeevyadavIT commented 5 years ago

Hi sid-metiz, could you share your base url and access token here or privately on sanjeevy133@protonmail.om, don't worry you can always delete the integration token

sid-metiz commented 5 years ago

Hi sid-metiz, could you share your base url and access token here or privately on sanjeevy133@protonmail.om, don't worry you can always delete the integration token

its .om or .com?

dimaportenko commented 5 years ago

@sid-metiz make sure you have a trailing slash for your 'url' in config like https://my.magento.site.com/, also try to add store: '' in your config like

export const magentoOptions = {
  url:"https://my.magento.com/",
  home_cms_block_id:"58",
  store: '',
  authentication:{integration:{access_token:"zttcv4znha3xizgpjgchwccf6nmvpsec"}}
}
sid-metiz commented 5 years ago

what i have to pass in store?? 04.12.2019, 14:59, "Dmytro Portenko" notifications@github.com:@sid-metiz make sure you have a trailing slash for your 'url' in config like https://my.magento.site.com/, also try to add store: '' in your config like export const magentoOptions = { url:"https://my.magento.com/", home_cms_block_id:"58", store: '', authentication:{integration:{access_token:"zttcv4znha3xizgpjgchwccf6nmvpsec"}} }

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

dimaportenko commented 5 years ago

try empty, as I mentioned above.

sid-metiz commented 5 years ago

ok but in home screen its dosent show any things04.12.2019, 15:10, "Dmytro Portenko" notifications@github.com:try empty, as I mentioned above.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

dimaportenko commented 5 years ago

any errors?

sid-metiz commented 5 years ago

No just blank Ui04.12.2019, 15:13, "Dmytro Portenko" notifications@github.com:any errors?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

dimaportenko commented 5 years ago

Try reinstall the app after config updated.

Actually you have to put in store store code from magento admin

Screenshot 2019-12-04 at 11 41 24 Screenshot 2019-12-04 at 11 43 02
sid-metiz commented 5 years ago

Can its show price as per Customer Group?04.12.2019, 15:13, "Dmytro Portenko" notifications@github.com:any errors?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

dimaportenko commented 5 years ago

It is not implemented in the app to show price as per Customer Group

sid-metiz commented 5 years ago

04.12.2019, 15:16, "Dmytro Portenko" notifications@github.com:Try reinstall the app after config updated. Actually you have to put in store store code from magento admin

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

sid-metiz commented 5 years ago

I put english in Store variable but still having issue04.12.2019, 15:17, "Dmytro Portenko" notifications@github.com:It is not implemented in the app to show price as per Customer Group

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

dimaportenko commented 5 years ago

please join Slack for further discussion https://join.slack.com/t/magento-react-native/shared_invite/enQtNjE3ODY0MDUxOTQyLTgwNDY2YzczNTEyNjQyY2QzMmY5ZDY4MmZlYjMyYmRiYzgzZjBiMDhmOTYxMDZkZjAwODkwZGI2MjAxY2FkNTE