by Business Fundamentals

SuiteCRM BI-Directional link to Xero Automated BI-DIRECTIONAL synch between SuiteCRM and Xero, synch most recent record. Accounts, Contacts, Invoice and Products, connect and forget. Synch based on your criteria. This module also gives you the ability to manually update Accounts/Contacts/Invoice records to/from Xero

Cancel at any time!
Free Trial

#1469 - Error on updating account

Closed Bug? created by rodwinlising 6 years ago

This happens everytime I do an Update Xero whether inn Accounts or contacts module

14 PostDataInvalidException Xml for post data was invalid, An error occurred while parsing EntityName. Line 4, position 26. XeroOAuth Object ( [_xero_defaults] => Array ( [xero_url] => https://api.xero.com/ [site] => https://api.xero.com [authorize_url] => https://api.xero.com/oauth/Authorize [signature_method] => RSA-SHA1 )

[_xero_consumer_options] => Array
    (
        [request_token_path] => oauth/RequestToken
        [access_token_path] => oauth/AccessToken
        [authorize_path] => oauth/Authorize
    )

[_action] => 
[_nonce_chars] => 
[params] => Array
    (
    )

[headers] => Array
    (
        [Accept] => application/xml
        [Content-Type] => application/x-www-form-urlencoded
        [Expect] => 
    )

[auto_fixed_time] => 
[buffer] => 
[request_params] => Array
    (
        [xml] => 
    )

[_xero_curl_options] => Array
    (
        [curl_connecttimeout] => 30
        [curl_timeout] => 20
        [curl_ssl_verifypeer] => 2
        [curl_cainfo] => /var/www/ranz/custom/entrypoints/XeroOAuth-PHP-master/certs/ca-bundle.crt
        [curl_followlocation] => 
        [curl_ssl_verifyhost] => 2
        [curl_proxy] => 
        [curl_proxyuserpwd] => 
        [curl_encoding] => 
        [curl_verbose] => 1
    )

[config] => Array
    (
        [xero_url] => https://api.xero.com/
        [site] => https://api.xero.com
        [authorize_url] => https://api.xero.com/oauth/Authorize
        [signature_method] => RSA-SHA1
        [request_token_path] => oauth/RequestToken
        [access_token_path] => oauth/AccessToken
        [authorize_path] => oauth/Authorize
        [curl_connecttimeout] => 30
        [curl_timeout] => 20
        [curl_ssl_verifypeer] => 2
        [curl_cainfo] => /var/www/ranz/custom/entrypoints/XeroOAuth-PHP-master/certs/ca-bundle.crt
        [curl_followlocation] => 
        [curl_ssl_verifyhost] => 2
        [curl_proxy] => 
        [curl_proxyuserpwd] => 
        [curl_encoding] => 
        [curl_verbose] => 1
        [application_type] => Private
        [oauth_callback] => oob
        [user_agent] => suite-xero
        [consumer_key] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        [shared_secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        [core_version] => 2.0
        [payroll_version] => 1.0
        [file_version] => 1.0
        [rsa_private_key] => /var/www/ranz/custom/entrypoints/XeroOAuth-PHP-master/certs/privatekey.pem
        [rsa_public_key] => /var/www/ranz/custom/entrypoints/XeroOAuth-PHP-master/certs/publickey.cer
        [access_token] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        [access_token_secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        [session_handle] => 
        [host] => https://api.xero.com/api.xro/2.0/
        [multipart] => 
    )

[xml] => 

            fb5b358c-72bf-4954-86ea-39b5632d3590
           ***************data ommitet***************





[method] => POST
[url] => https://api.xero.com/api.xro/2.0/Contacts
[sign] => Array
    (
        [parameters] => Array
            (
                [oauth_consumer_key] =>                ***************data ommitet***************
                [oauth_nonce] => whQ9E
                [oauth_signature_method] => RSA-SHA1
                [oauth_timestamp] => 1539047414
                [oauth_token] =>               ***************data ommitet***************
                [oauth_version] => 1.0
                [xml] => 

            fb5b358c-72bf-4954-86ea-39b5632d3590
                       ***************data ommitet***************





                [oauth_signature] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            )

        [signature] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        [signed_url] => https://api.xero.com/api.xro/2.0/Contacts?oauth_consumer_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&oauth_nonce=whQ9E&oauth_signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%2F4V6NnEYjAXzpfDSxbeGcvRVX%2FZJQb1VcJU%2Fb2LuGRkQ59ooVYtP%2BDYKugTIW%2BIw8jINkcQ9jxHs8MlLYrgWOdjCfoKEbEdssFoU%2BDwIlk2mxrC9bc55GxzByVk7Ba6AKareTc%3D&oauth_signature_method=RSA-SHA1&oauth_timestamp=1539047414&oauth_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&oauth_version=1.0
        [header] => OAuth oauth_consumer_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", oauth_nonce="whQ9E", oauth_signature="Gl3I0Gl79Sxpa8KyqahY7pP4knkxNZVDTmXH1%2F4V6NnEYjAXzpfDSxbeGcvRVX%2FZJQb1VcJU%2Fb2LuGRkQ59ooVYtP%2BDYKugTIW%2BIw8jINkcQ9jxHs8MlLYrgWOdjCfoKEbEdssFoU%2BDwIlk2mxrC9bc55GxzByVk7Ba6AKareTc%3D", oauth_signature_method="RSA-SHA1", oauth_timestamp="1539047414", oauth_token="FZPPTYI3NOKRMVZYMFFOEKND6WMSAL", oauth_version="1.0"
        [sbs] => xxxxxxx
    )

[format] => xml
[request_payload] => xml=xxxxxx
[response] => Array
    (
        [headers] => Array
            (
                [content_type] => text/xml; charset=utf-8
                [strict_transport_security] => max-age=31536000
                [www_authenticate] => OAuth Realm="api.xero.com"
                [xero_cell] => trampa
                [content_length] => 322
                [expires] => Tue, 09 Oct 2018 01:10:17 GMT
                [cache_control] => max-age=0, no-cache, no-store
                [pragma] => no-cache
                [date] => Tue, 09 Oct 2018 01:10:17 GMT
                [connection] => close
                [x_client_tls_ver] => tls1.2
            )

        [code] => 400
        [response] => 

14 PostDataInvalidException Xml for post data was invalid, An error occurred while parsing EntityName. Line 4, position 26.

        [info] => Array
            (
                [url] => https://api.xero.com/api.xro/2.0/Contacts?oauth_consumer_key=             ***************data ommitet***************&oauth_nonce=whQ9E&oauth_signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%2BDYKugTIW%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%3D&oauth_signature_method=RSA-SHA1&oauth_timestamp=1539047414&oauth_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&oauth_version=1.0
                [content_type] => text/xml; charset=utf-8
                [http_code] => 400
                [header_size] => 384
                [request_size] => 2673
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 3.303094
                [namelookup_time] => 0.060626
                [connect_time] => 0.064534
                [pretransfer_time] => 0.086501
                [size_upload] => 2071
                [size_download] => 322
                [speed_download] => 97
                [speed_upload] => 626
                [download_content_length] => 322
                [upload_content_length] => 2071
                [starttransfer_time] => 3.303026
                [redirect_time] => 0
                [redirect_url] => 
                [primary_ip] => 23.222.69.168
                [certinfo] => Array
                    (
                    )

                [primary_port] => 443
                [local_ip] => 10.0.201.73
                [local_port] => 47580
                [request_header] => POST /api.xro/2.0/Contacts?oauth_consumer_key=xxx.....&oauth_version=1.0 HTTP/1.1

Host: api.xero.com User-Agent: suite-xero Accept-Encoding: deflate, gzip Accept: application/xml Content-Type: application/x-www-form-urlencoded Content-Length: 2071

            )

        [format] => xml
    )

) Error:

  1. MartyP member avatar

    Business Fundamentals Provider Affiliate

    5 years ago

    Error fixed

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...