"Could not determine customer compid" USER_ERROR in netsuite sandbox - netsuite

I have a User event which calls a restlet using nlapiRequestURL() method. The URL, headers and authorization seems fine but it returns an error message saying - "Could not determine customer compid". Has anyone had the same issue earlier or know how to work around with this. Any help is appreciated.

We see this occassionally when a Suitelet or Restlet URL isn't specific enough for NetSuite to know which company is trying to call the URL. The script id by itself is not enough to know the company if the user is not currently logged in to NetSuite.
You can add &compid=<YOUR NETSUITE ACCOUNT NUMBER> to the the URL to let NetSuite know which company is trying to call the specific URL.

Just adding this on because I had the same issue, you'll get the same error if you're hitting a sandbox and not capitalizing the SB in nlauth_account.
Eg NLAuth nlauth_account=XXXXXXX_SB1 instead of NLAuth nlauth_account=XXXXXXX_sb1.

We did face this issue, clearing browser cookies solved in most cases.
Sometimes the problem was persistent for about few hours and got fixed on its own.

If you're using NLAuth, be sure you use commas (not spaces) to separate the account, email, and signature fields. Using spaces gave me this error.

Related

With suitelet's external url unable to send mail

We have an issue here. I don't know its by design or an issue that I'm only facing here. Its pretty strange that the same User Event is executing fine while I'm modifying a record through Suitelet's internal url but if I switched to external url its not working. Any guess why this is happening ?
Permission maybe? Under what role are you running the suitelet?
I got one solution for that i am calling restlet with suitelet to invoke user event. wrote some code in restlet like update fields on record type. and user event will trigger. and write mail logic in user event so mail will be sent.
Security Reasons, if your Suitelet is available without login or as you've mentioned accessible by "External URL" that means the it can be accessed by anyone that doesn't have an access to your NetSuite account. Having said that, do you want to send an email triggered by a user whom you don't know? I guess not.

Using Gmail API to update website when receiving an email

new to programming on the web so bear with me.
I've figured out that OAuth2.0 (the authorization protocol used by Gmail) is used for applications where Site A is given permission to information in Site B (in this case Gmail) by User X.
I am trying to create a website that updates when I receive an email from a specific sender. So, I am not using any of my website users' email information. I'm only using my own. I cannot seem to figure out (or even understand at a high level) how to permanently give my website access to my gmail account without doing some kind of user authentication on myself. What is the high-level process for giving my website this permanent authentication?
Let me know if I can make this clearer. Thank you in advance!
I've never done what you are trying to do, but you may find some useful answers here :)
Getting e-mail ID of sender while fetching mails from Gmail
I hope this helps if not I'm sorry. :)
UPDATE:
After reading that link a little bit more there are parts of it where they are getting the sender. You can always write a code to compare the sender by implementing what you need from that link. :)

MassPay API Using NVP returns "Security Header Is Not Valid"

I'm trying to follow the instructions at https://developer.paypal.com/docs/classic/mass-pay/integration-guide/MassPayUsingAPI/#id101DEJ0100A for paying a customer. https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-signature# tells me the API username, API password and and signature. I paste those values directly into my program, and POST those parameters (as well as other parameters) to https ://api-3t.paypal.com/nvp and I get this response back:
TIMESTAMP=2015%2d05%2d06T23%3a58%3a01Z&CORRELATIONID=6eef131f4a296&ACK=Failure&VERSION=2%2e3&BUILD=16566018&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
Any tips for troubleshooting what might be going on here?
Thanks in advance!
Kevin
That error means the API credentials you're using are not accurate. Double the check the values themselves and make sure you didn't miss any characters or add any extra white space on the ends of the values. Also, make sure you're not sending sandbox credentials to the live PayPal server or vice-verse. That's usually what's happening when people run into this.

instagram api APIAgeGatedError not in the document

when I try to get few people profile use instagram api it shows error message APIAgeGatedError, what does this mean? how to solve it
I can't find documentation about this exception, but I think this problem is related with your IP, I changed IP-adress and problem was solved. Or try to use proxy-server.
The APIAgeGatedError type error is generated because the content from the requested profile is restricted to a minimum age. You can't reach the content for sure with your "general token". Perhaps with an token that has been authorized from the page you are trying to get content from. However Instagram has no provided documentation about this.

Problem with Importing contact list from gmail contacts using php

I am trying to import the contact list from gmail using libgmailer.php but I am getting this error.
Fail to connect because: Gmail: Invalid request. (libgmailer: Gmail seems to have changed the URL again.)
Can anyone tell me what iam doing wrong.
thanks
Google has an API to get the information now. http://code.google.com/apis/contacts/ Trying to screen-scrape the data is, at best, obsolete.

Resources