Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Error generated when link shared via facebook
jnswright
#1 Posted : Thursday, 13 May 2010 6:25:21 AM(UTC)
Rank: Member

Joined: 1/02/2010(UTC)
Posts: 12
Location: Irving, TX

Roger,
I suddenly saw a bunch of error messages show up and will copy an example below.
I believe it is a result of a link to the gallery being shared via Facebook (one of my users shared it).

Any ideas of what might be generating the errors?


John

Error message follows:


This error report was generated by Gallery Server Pro.
Error: Invalid length for a Base-64 char array.
Error Summary
Urlhttp://gallery.nickertown.com/gs/handler/getmediaobject.ashx?vidnPRxqgjM7Auzgv7DEe%20r%20itFgz2eLVMXg7HItBLkAyom4rSaf2SU3O5loOg%20s8bjE83 wwzb4PGk3TjMuB%20b%2FyhYBebONG5un%2FMP6lOaHQF5tfPP7YIyDrC9wS6A%20je0lPxj2G030EQX%20NHAvmU 3rHkTxZpJGJ7oZI52G1f7ApiwEjEGTntJkV2Zi8I4ei%20oZITO5KGgwYcoOaNnL9J%2FRHKP94J8lhfYQZWCT9guT9gPicD qiNqsvCHjErscRk=
Timestamp5/13/2010 2:17:45 PM
Exception TypeSystem.FormatException
MessageInvalid length for a Base-64 char array.
Sourcemscorlib
Target SiteByte[] FromBase64String(System.String)
Stack Traceat System.Convert.FromBase64String(String s)
at GalleryServerPro.Business.HelperFunctions.Decrypt(String encryptedText)
at GalleryServerPro.Web.handler.getmediaobject.ExtractQueryStringParms(String queryString)
at GalleryServerPro.Web.handler.getmediaobject.InitializeVariables(HttpContext context)
at GalleryServerPro.Web.handler.getmediaobject.ProcessRequest(HttpContext context)
App Error ID-2147483648
Gallery ID1
HTTP User Agentfacebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)

Form Variables
<none>

Cookies
.ASPXANONYMOUSdNdfzmIpywEkAAAAZmI0YTdmMmItN2E0OC00ZWNmLWEyYzEtMTQ3YjM0ZGRiOTg5yCo4Mblf 9ULHQEM27qMqBfeLXts1
ASP.NET_SessionIdkqd0e5452aal0mefbf00tyiq

Session Variables
<none>

Server Variables
ALL_HTTPHTTP_ACCEPT:*/*
HTTP_HOST:gallery.nickertown.com
HTTP_USER_AGENT:facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)

ALL_RAWAccept: */*
Host: gallery.nickertown.com
User-Agent: facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)

APPL_MD_PATH/LM/W3SVC/2126916920/Root
APPL_PHYSICAL_PATHXXXXXXXXX\gallery.nickertown.com\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH0
CONTENT_TYPE
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID2126916920
INSTANCE_META_PATH/LM/W3SVC/2126916920
LOCAL_ADDR68.164.18.75
PATH_INFO/gs/handler/getmediaobject.ashx
PATH_TRANSLATEDXXXXXXXX\gallery.nickertown.com\gs\handler\getmediaobject.ashx
QUERY_STRINGvidnPRxqgjM7Auzgv7DEe%20r%20itFgz2eLVMXg7HItBLkAyom4rSaf2SU3O5loOg%20s8b jE83wwzb4PGk3TjMuB%20b%2FyhYBebONG5un%2FMP6lOaHQF5tfPP7YIyDrC9wS6A%20je 0lPxj2G030EQX%20NHAvmU3rHkTxZpJGJ7oZI52G1f7ApiwEjEGTntJkV2Zi8I4ei%20oZI TO5KGgwYcoOaNnL9J%2FRHKP94J8lhfYQZWCT9guT9gPicDqiNqsvCHjErscRk=
REMOTE_ADDR69.63.190.246
REMOTE_HOST69.63.190.246
REMOTE_PORT42575
REQUEST_METHODGET
SCRIPT_NAME/gs/handler/getmediaobject.ashx
SERVER_NAMEgallery.nickertown.com
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/6.0
URL/gs/handler/getmediaobject.ashx
HTTP_ACCEPT*/*
HTTP_HOSTgallery.nickertown.com
HTTP_USER_AGENTfacebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)
Roger Martin
#2 Posted : Friday, 14 May 2010 12:20:56 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

That error occurs when GSP can't decrypt the information in the URL. Here is the URL from the error message:

gallery.nickertown.com/gs/handler/getmediaobject.ashx?vidnPRxqgjM7Auzgv7DEe%20r%20itFgz2eLVMXg7HItBLkAyom4rSaf2SU3O5loOg%20s8bjE83ww zb4PGk3TjMuB%20b%2FyhYBebONG5un%2FMP6lOaHQF5tfPP7YIyDrC9wS6A%20je0lPxj2G030EQX%20NHAvmU3rHkTx ZpJGJ7oZI52G1f7ApiwEjEGTntJkV2Zi8I4ei%20oZITO5KGgwYcoOaNnL9J%2FRHKP94J8lhfYQZWCT9guT9gPicDqiNqsvCHj ErscRk=

Something is corrupt about that URL. I am not sure, but I don't think the '%20' sequences should be there, since that is the encoding sequence for a space, and there shouldn't be a space in the query string parameter.

I did a test with my own Facebook account where I copied one of the URLs from my own gallery and sent it to my wife. It worked without any trouble.

Not sure what happened.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cipher
#3 Posted : Monday, 27 September 2010 10:48:38 AM(UTC)
Rank: Member

Joined: 5/10/2008(UTC)
Posts: 18
Man
Location: Countryside in Switzerland

Hello

I get the same error, but don't see an '%20' sequences.

Error:

This error report was generated by Gallery Server Pro.
Error: Invalid length for a Base-64 char array.
Error Summary
Url http://galerie.michaelblaser.ch/gallery/gs/handler/getmediaobject.ashx?2vxJSqS3uNWqeFLObNJlHjAojgqe5T69SeoizaEcVL54igeLdkpOPXr8N6xF32mCxUNKBivWvl%2F 31jJ1NiVG9JLtle2J%2BuGl0m6wvjxzd8GL4XIM480UYA6FC27hETH27OFsgnQwY22VgjUUITQ8pUP%2F921EPynqVRCnS LI7Wuakb9Ob154a7JxHtgXHFU6KK5KAqZDpdukRo5WTRGajpA=

Timestamp 9/27/2010 6:47:51 PM
Exception Type System.FormatException
Message Invalid length for a Base-64 char array.
Source mscorlib
Target Site Byte[] FromBase64String(System.String)
Stack Trace at System.Convert.FromBase64String(String s)
at GalleryServerPro.Business.HelperFunctions.Decrypt(String encryptedText)
at GalleryServerPro.Web.handler.getmediaobject.ExtractQueryStringParms(String queryString)
at GalleryServerPro.Web.handler.getmediaobject.InitializeVariables(HttpContext context)
at GalleryServerPro.Web.handler.getmediaobject.ProcessRequest(HttpContext context)
App Error ID -2147483648
Gallery ID 1
HTTP User Agent facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)
Form Variables
<none>
Cookies
ASP.NET_SessionId punmxwif5t5yosa23jnhyfun
Session Variables
<none>
Server Variables
ALL_HTTP HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/*
HTTP_ACCEPT_ENCODING:gzip
HTTP_HOST:galerie.michaelblaser.ch
HTTP_USER_AGENT:facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)
HTTP_REVERSE_VIA:GATEWAY01
ALL_RAW Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip
Host: galerie.michaelblaser.ch
User-Agent: facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)
Reverse-Via: GATEWAY01
APPL_MD_PATH /LM/W3SVC/1/ROOT/gallery
APPL_PHYSICAL_PATH D:\GalleryServer\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1
INSTANCE_META_PATH /LM/W3SVC/1
LOCAL_ADDR 192.168.2.244
PATH_INFO /gallery/gs/handler/getmediaobject.ashx
PATH_TRANSLATED D:\GalleryServer\gs\handler\getmediaobject.ashx
QUERY_STRING 2vxJSqS3uNWqeFLObNJlHjAojgqe5T69SeoizaEcVL54igeLdkpOPXr8N6xF32mCxUNKBivW vl%2F31jJ1NiVG9JLtle2J%2BuGl0m6wvjxzd8GL4XIM480UYA6FC27hETH27OFsgnQwY22 VgjUUITQ8pUP%2F921EPynqVRCnSLI7Wuakb9Ob154a7JxHtgXHFU6KK5KAqZDpdukRo5WT RGajpA=
REMOTE_ADDR 192.168.2.254
REMOTE_HOST 192.168.2.254
REMOTE_PORT 13134
REQUEST_METHOD GET
SCRIPT_NAME /gallery/gs/handler/getmediaobject.ashx
SERVER_NAME galerie.michaelblaser.ch
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/7.0
URL /gallery/gs/handler/getmediaobject.ashx
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_HOST galerie.michaelblaser.ch
HTTP_USER_AGENT facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)
HTTP_REVERSE_VIA GATEWAY01


I use Windows Server 2008 Enterprise SP2 with IIS 7.0 and Gallery Server Pro version: v2.3.3750

thx
Roger Martin
#4 Posted : Monday, 27 September 2010 11:54:16 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

Does the URL work if you paste it into your browser? If not, then verify you are grabbing the URL correctly. Can you provide a link to the gallery so I can see for myself?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cipher
#5 Posted : Monday, 27 September 2010 12:16:59 PM(UTC)
Rank: Member

Joined: 5/10/2008(UTC)
Posts: 18
Man
Location: Countryside in Switzerland

The URL works, but I just get a white page and immediatly I get the error message.

Now I deleted the entry in facebook and created a new one, without a thumbnail and it seems that the error is gone.

After that I recreated another link with a thumbnail (I see the pic in the preview, but not in the final posting) and get the error again.

So I guess the error has something to do with the thumbnail pic in the link posting from facebook.

The link to the gallery I posted in facebook is http://galerie.michaelbl...ry/default.aspx?aid=144

thx
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.