- Joined
- Sep 20, 2018
- Messages
- 3,845
- Location
- Illinois
- SL Rez
- 2006
- Joined SLU
- 04-28-2010
- SLU Posts
- 6947
So, this is mostly just venting a bit, involving work.
So, we have this website we use at work for On Call. It's being shut down, so we had a group build us a new, better website for On Call. That site works fine.
I work on our dashboard website for all of the sites across the country in my organization. We have a page that consolidated the On Call. I have worked off and on the last few weeks to rebuild this using the new On Call site.
My new set up, works fine.
We have like 200 locations in this system. They work fine on the development server.
Last night, we rolled the new system out to production. Went through, checked through every location. Everything works fine.
Except like 3 sites.
And after we spent hours putting with it, we absolutely could not figure out why. Thankfully, they are sort of minor sites, so we left them broken for now and it shouldn't be an issue.
So the system basically works as follows, from a coding flow.
A JavaScript function gets a variable for the location identifier, it's either an index number from the database or an alphabet based company code.
The page checks to see if it's numeric or alpha characters, if it's numeric, it loops up the alpha code from the database and returns it. If it's already alpha characters, it truncates it.
The system uses the alpha character code to pull the On Call data from the other website, then formats and spits out the JSON.
It works absolutely fine.
Except for like 3 sites.
I even replicated the page on a dummy page. If I card code the Alpha characters into the API call. It works.
If I run the SQL command in SQL Manager, it works.
If I go into the database and manually change the Alpha characters to something else, it works, though it returns "No Data" as expected instead of an error. If I replicate the Alpha code from another location, it pulls that location data and works.
If I card code in an if statement on the test page, that converts the numerical code to the alpha code, bypassing the SQL call, it works on the test page, but not the live page.
If I rebuild that location, sonit gets a fresh numerical index, it fails.
If I build a new location with fake data, or works, if I edit that location to match the bad location, it fails.
No matter what trouble shooting I tried, it always fails, when any numerical code tries to convert to this one of three particular alpha codes. We have 200 other sites that all flow and convert fine. There isn't anything special about the alpha codes either, they are just abbreviations for city and state for the most part.
Like I said, mostly, I am just venting about this bizzare as hell problem.
So, we have this website we use at work for On Call. It's being shut down, so we had a group build us a new, better website for On Call. That site works fine.
I work on our dashboard website for all of the sites across the country in my organization. We have a page that consolidated the On Call. I have worked off and on the last few weeks to rebuild this using the new On Call site.
My new set up, works fine.
We have like 200 locations in this system. They work fine on the development server.
Last night, we rolled the new system out to production. Went through, checked through every location. Everything works fine.
Except like 3 sites.
And after we spent hours putting with it, we absolutely could not figure out why. Thankfully, they are sort of minor sites, so we left them broken for now and it shouldn't be an issue.
So the system basically works as follows, from a coding flow.
A JavaScript function gets a variable for the location identifier, it's either an index number from the database or an alphabet based company code.
The page checks to see if it's numeric or alpha characters, if it's numeric, it loops up the alpha code from the database and returns it. If it's already alpha characters, it truncates it.
The system uses the alpha character code to pull the On Call data from the other website, then formats and spits out the JSON.
It works absolutely fine.
Except for like 3 sites.
I even replicated the page on a dummy page. If I card code the Alpha characters into the API call. It works.
If I run the SQL command in SQL Manager, it works.
If I go into the database and manually change the Alpha characters to something else, it works, though it returns "No Data" as expected instead of an error. If I replicate the Alpha code from another location, it pulls that location data and works.
If I card code in an if statement on the test page, that converts the numerical code to the alpha code, bypassing the SQL call, it works on the test page, but not the live page.
If I rebuild that location, sonit gets a fresh numerical index, it fails.
If I build a new location with fake data, or works, if I edit that location to match the bad location, it fails.
No matter what trouble shooting I tried, it always fails, when any numerical code tries to convert to this one of three particular alpha codes. We have 200 other sites that all flow and convert fine. There isn't anything special about the alpha codes either, they are just abbreviations for city and state for the most part.
Like I said, mostly, I am just venting about this bizzare as hell problem.