Odd SaaS Connector Log Message

I am looking at the logs for one of our custom SaaS connections. Every so often there is a very odd ConnectorMessage. Has anyone seen this? The connector seems to be working fine, just found this odd.

INFO  | connectorMessage ▶︎  */(function(t,r){if(typeof define==="function"&&define["amd"])define([],r);else if(true&&e&&e["exports"])e["exports"]=r();else(t["dcodeIO"]=t["dcodeIO"]||{})["Long"]=r()})(this,(function(){"use strict";function Long(e,t,r){this.low=e|0;this.high=t|0;this.unsigned=!!r}Long.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:true,enumerable:false,configurable:false});Long.isLong=function isLong(e){return(e&&e["__isLong__"])===true};var e={};var t={};Long.fromInt=function fromInt(r,n){var i,o;if(!n){r=r|0;if(-128<=r&&r<128){o=e[r];if(o)return o}i=new Long(r,r<0?-1:0,false);if(-128<=r&&r<128)e[r]=i;return i}else{r=r>>>0;if(0<=r&&r<256){o=t[r];if(o)return o}i=new Long(r,(r|0)<0?-1:0,true);if(0<=r&&r<256)t[r]=i;return i}};Long.fromNumber=function fromNumber(e,t){t=!!t;if(isNaN(e)||!isFinite(e))return Long.ZERO;if(!t&&e<=-s)return Long.MIN_VALUE;if(!t&&e+1>=s)return Long.MAX_VALUE;if(t&&e>=o)return Long.MAX_UNSIGNED_VALUE;if(e<0)return Long.fromNumber(-e,t).negate();return new Long(e%i|0,e/i|0,t)};Long.fromBits=function fromBits(e,t,r){return new Long(e,t,r)};Long.fromString=function fromString(e,t,r){if(e.length===0)throw Error("number format error: empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Long.ZERO;if(typeof t==="number")r=t,t=false;r=r||10;if(r<2||36<r)throw Error("radix out of range: "+r);var n;if((n=e.indexOf("-"))>0)throw Error('number format error: interior "-" character: '+e);else if(n===0)return Long.fromString(e.substring(1),t,r).negate();var i=Long.fromNumber(Math.pow(r,8));var o=Long.ZERO;for(var s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s);var u=parseInt(e.substring(s,s+a),r);if(a<8){var c=Long.fromNumber(Math.pow(r,a));o=o.multiply(c).add(Long.fromNumber(u))}else{o=o.multiply(i);o=o.add(Long.fromNumber(u))}}o.unsigned=t;return o};Long.fromValue=function fromValue(e){if(e instanceof Long)return e;if(typeof e==="number")return Long.fromNumber(e);if(typeof e==="string")return Long.fromString(e);return new Long(e.low,e.high,e.unsigned)};var r=1<<16;var n=1<<24;var i=r*r;var o=i*i;var s=o/2;var a=Long.fromInt(n);Long.ZERO=Long.fromInt(0);Long.UZERO=Long.fromInt(0,true);Long.ONE=Long.fromInt(1);Long.UONE=Long.fromInt(1,true);Long.NEG_ONE=Long.fromInt(-1);Long.MAX_VALUE=Long.fromBits(4294967295|0,2147483647|0,false);Long.MAX_UNSIGNED_VALUE=Long.fromBits(4294967295|0,4294967295|0,true);Long.MIN_VALUE=Long.fromBits(0,2147483648|0,false);Long.prototype.toInt=function toInt(){return this.unsigned?this.low>>>0:this.low};Long.prototype.toNumber=function toNumber(){if(this.unsigned){return(this.high>>>0)*i+(this.low>>>0)}return this.high*i+(this.low>>>0)};Long.prototype.toString=function toString(e){e=e||10;if(e<2||36<e)throw RangeError("radix out of range: "+e);if(this.isZero())return"0";var t;if(this.isNegative()){if(this.equals(Long.MIN_VALUE)){var r=Long.fromNumber(e);var n=this.divide(r);t=n.multiply(r).subtract(this);return n.toString(e)+t.toInt().toString(e)}else return"-"+this.negate().toString(e)}var i=Long.fromNumber(Math.pow(e,6),this.unsigned);t=this;var o="";while(true){var s=t.divide(i),a=t.subtract(s.multiply(i)).toInt()>>>0,u=a.toString(e);t=s;if(t.isZero())return u+o;else{while(u.length<6)u="0"+u;o=""+u+o}}};Long.prototype.getHighBits=function getHighBits(){return this.high};Long.prototype.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0};Long.prototype.getLowBits=function getLowBits(){return this.low};Long.prototype.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0};Long.prototype.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.equals(Long.MIN_VALUE)?64:this.negate().getNumBitsAbs();var e=this.high!=0?this.high:this.low;for(var t=31;t>0;t--)if((e&1<<t)!=0)break;return this.high!=0?t+33:t+1};Long.prototype.isZero=function isZero(){return this.high===0&&this.low===0};Long.prototype.isNegative=function isNegative(){return!this.unsigned&&this.high<0};Long.prototype.isPositive=function isPositive(){return this.unsigned||this.high>=0};Long.prototype.isOdd=function isOdd(){return(this.low&1)===1};Long.prototype.isEven=function isEven(){return(this.low&1)===0};Long.prototype.equals=function equals(e){if(!Long.isLong(e))e=Long.fromValue(e);if(this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1)return false;return this.high===e.high&&this.low===e.low};Long.eq=Long.prototype.equals;Long.prototype.notEquals=function notEquals(e){return!this.equals(e)};Long.neq=Long.prototype.notEquals;Long.prototype.lessThan=function lessThan(e){return this.compare(e)<0};Long.prototype.lt=Long.prototype.lessThan;Long.prototype.lessThanOrEqual=function lessThanOrEqual(e){return this.compare(e)<=0};Long.prototype.lte=Long.prototype.lessThanOrEqual;Long.prototype.greaterThan=function greaterThan(e){return this.compare(e)>0};Long.prototype.gt=Long.prototype.greaterThan;Long.prototype.greaterThanOrEqual=function greaterThanOrEqual(e){return this.compare(e)>=0};Long.prototype.gte=Long.prototype.greaterThanOrEqual;Long.prototype.compare=function compare(e){if(!Long.isLong(e))e=Long.fromValue(e);if(this.equals(e))return 0;var t=this.isNegative(),r=e.isNegative();if(t&&!r)return-1;if(!t&&r)return 1;if(!this.unsigned)return this.subtract(e).isNegative()?-1:1;return e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1};Long.prototype.negate=function negate(){if(!this.unsigned&&this.equals(Long.MIN_VALUE))return Long.MIN_VALUE;return this.not().add(Long.ONE)};Long.prototype.neg=Long.prototype.negate;Long.prototype.add=function add(e){if(!Long.isLong(e))e=Long.fromValue(e);var t=this.high>>>16;var r=this.high&65535;var n=this.low>>>16;var i=this.low&65535;var o=e.high>>>16;var s=e.high&65535;var a=e.low>>>16;var u=e.low&65535;var c=0,l=0,p=0,d=0;d+=i+u;p+=d>>>16;d&=65535;p+=n+a;l+=p>>>16;p&=65535;l+=r+s;c+=l>>>16;l&=65535;c+=t+o;c&=65535;return Long.fromBits(p<<16|d,c<<16|l,this.unsigned)};Long.prototype.subtract=function subtract(e){if(!Long.isLong(e))e=Long.fromValue(e);return this.add(e.negate())};Long.prototype.sub=Long.prototype.subtract;Long.prototype.multiply=function multiply(e){if(this.isZero())return Long.ZERO;if(!Long.isLong(e))e=Long.fromValue(e);if(e.isZero())return Long.ZERO;if(this.equals(Long.MIN_VALUE))return e.isOdd()?Long.MIN_VALUE:Long.ZERO;if(e.equals(Long.MIN_VALUE))return this.isOdd()?Long.MIN_VALUE:Long.ZERO;if(this.isNegative()){if(e.isNegative())return this.negate().multiply(e.negate());else return this.negate().multiply(e).negate()}else if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(a)&&e.lessThan(a))return Long.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16;var r=this.high&65535;var n=this.low>>>16;var i=this.low&65535;var o=e.high>>>16;var s=e.high&65535;var u=e.low>>>16;var c=e.low&65535;var l=0,p=0,d=0,m=0;m+=i*c;d+=m>>>16;m&=65535;d+=n*c;p+=d>>>16;d&=65535;d+=i*u;p+=d>>>16;d&=65535;p+=r*c;l+=p>>>16;p&=65535;p+=n*u;l+=p>>>16;p&=65535;p+=i*s;l+=p>>>16;p&=65535;l+=t*c+r*u+n*s+i*o;l&=65535;return Long.fromBits(d<<16|m,l<<16|p,this.unsigned)};Long.prototype.mul=Long.prototype.multiply;Long.prototype.divide=function divide(e){if(!Long.isLong(e))e=Long.fromValue(e);if(e.isZero())throw new Error("division by zero");if(this.isZero())return this.unsigned?Long.UZERO:Long.ZERO;var t,r,n;if(this.equals(Long.MIN_VALUE)){if(e.equals(Long.ONE)||e.equals(Long.NEG_ONE))return Long.MIN_VALUE;else if(e.equals(Long.MIN_VALUE))return Long.ONE;else{var i=this.shiftRight(1);t=i.divide(e).shiftLeft(1);if(t.equals(Long.ZERO)){return e.isNegative()?Long.ONE:Long.NEG_ONE}else{r=this.subtract(e.multiply(t));n=t.add(r.divide(e));return n}}}else if(e.equals(Long.MIN_VALUE))return this.unsigned?Long.UZERO:Long.ZERO;if(this.isNegative()){if(e.isNegative())return this.negate().divide(e.negate());return this.negate().divide(e).negate()}else if(e.isNegative())return this.divide(e.negate()).negate();n=Long.ZERO;r=this;while(r.greaterThanOrEqual(e)){t=Math.max(1,Ma

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

It looks like the log you’re seeing is related to a JavaScript library for working with 64-bit integers called Long.js. This library is often used in environments where JavaScript’s native number representation (which is limited to 53 bits) is insufficient for handling large integers accurately.

The log you provided seems to be a minified version of the Long.js library, which defines a constructor function Long and various utility methods for working with 64-bit integers. It’s not uncommon to see such logs in environments where JavaScript code is minified or obfuscated.

If your connector is working fine despite this log, it’s likely that the Long.js library is being used correctly within your connector’s code to handle large integer values.

3 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.