Click here to Skip to main content
15,880,364 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
Johnny J.6-Mar-20 2:58
professionalJohnny J.6-Mar-20 2:58 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
OriginalGriff6-Mar-20 3:09
mveOriginalGriff6-Mar-20 3:09 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
Maximilien6-Mar-20 3:18
Maximilien6-Mar-20 3:18 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
OriginalGriff6-Mar-20 4:08
mveOriginalGriff6-Mar-20 4:08 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
dandy726-Mar-20 4:40
dandy726-Mar-20 4:40 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
kalberts6-Mar-20 13:04
kalberts6-Mar-20 13:04 
GeneralRe: I went down to the local tobacconist just to discover that it had been replaced with a men's wear store... Pin
kalberts6-Mar-20 13:13
kalberts6-Mar-20 13:13 
RantThird Party API's Pin
Marc Clifton6-Mar-20 2:43
mvaMarc Clifton6-Mar-20 2:43 
So I'm working with a 3rd party API (why do I need to be ethical and not mention who???) but anyways, one of the parameters when opening a session is simply Name defined as type string with the comment "Session Name".

So I've got a test jig and I figured I'd give the session a name with a timestamp so in the product, I can see when my code created it as part of the testing process.

Like this:

"Name": "Session 3/6/2020 8:32:22 AM"

And I get back a this:

{"ErrorCode": 99996}

Seriously, WTF. I try the CURL example they provide (which is actually nice of them) and it works. After having been in this business for as many years as I have, that intuitive "OMG, please don't tell me they can't handle special characters in the name" feeling starts tingling in the fingers that want to reach for the battle axe.

Turns out / and : characters aren't allowed (and probably some other characters too). Dashes and dots are fine, so I instead:

"Name": "Session 3-6-2020 8.32.22 AM"

OK. WTF. What parser are they using, and why the elephant are they even parsing the content of the "name string"? Why would they care??? Someone actually wrote code to verify certain characters are disallowed?

Mad | :mad: Mad | :mad: Mad | :mad: !!!! AND WHY DIDN'T THEY DOCUMENT THAT !!!! Mad | :mad: Mad | :mad: Mad | :mad:

GeneralRe: Third Party API's Pin
Mark_Wallace6-Mar-20 2:56
Mark_Wallace6-Mar-20 2:56 
PraiseRe: Third Party API's Pin
Greg Utas6-Mar-20 3:21
professionalGreg Utas6-Mar-20 3:21 
GeneralRe: Third Party API's Pin
Jörgen Andersson6-Mar-20 6:20
professionalJörgen Andersson6-Mar-20 6:20 
GeneralRe: Third Party API's Pin
Mark_Wallace6-Mar-20 14:12
Mark_Wallace6-Mar-20 14:12 
GeneralRe: Third Party API's Pin
Gerry Schmitz6-Mar-20 8:02
mveGerry Schmitz6-Mar-20 8:02 
GeneralFortune Cookie Pin
W Balboos, GHB6-Mar-20 1:22
W Balboos, GHB6-Mar-20 1:22 
GeneralRe: Fortune Cookie Pin
Greg Utas6-Mar-20 1:32
professionalGreg Utas6-Mar-20 1:32 
JokeRe: Fortune Cookie Pin
W Balboos, GHB6-Mar-20 1:36
W Balboos, GHB6-Mar-20 1:36 
GeneralRe: Fortune Cookie Pin
Marc Clifton6-Mar-20 2:56
mvaMarc Clifton6-Mar-20 2:56 
GeneralRe: Fortune Cookie Pin
kalberts6-Mar-20 13:44
kalberts6-Mar-20 13:44 
GeneralRe: Fortune Cookie Pin
Greg Utas6-Mar-20 14:07
professionalGreg Utas6-Mar-20 14:07 
GeneralWindows 8! Pain! Pin
glennPattonWork35-Mar-20 22:03
professionalglennPattonWork35-Mar-20 22:03 
GeneralRe: Windows 8! Pain! Pin
David O'Neil5-Mar-20 22:37
professionalDavid O'Neil5-Mar-20 22:37 
GeneralRe: Windows 8! Pain! Pin
glennPattonWork36-Mar-20 0:02
professionalglennPattonWork36-Mar-20 0:02 
GeneralRe: Windows 8! Pain! Pin
David O'Neil6-Mar-20 1:15
professionalDavid O'Neil6-Mar-20 1:15 
GeneralRe: Windows 8! Pain! Pin
Eddy Vluggen5-Mar-20 23:50
professionalEddy Vluggen5-Mar-20 23:50 
GeneralRe: Windows 8! Pain! Pin
glennPattonWork36-Mar-20 0:03
professionalglennPattonWork36-Mar-20 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.