EddieLotter
Advocate
EddieLotter
Advocate
Activity
‎Mar 26, 2024
08:08 AM
My apologies. I do not know the answer to your question.
... View more
‎Mar 26, 2024
07:33 AM
See Adobe's instructions: How to import certificates to ColdFusion's truststore
... View more
‎Mar 21, 2024
07:47 AM
I second this recommendation. As an added note: If you provide a value to the date input, be sure it is in the "yyyy-mm-dd" format or the browser will ignore it. Note also that this does not affect the format in which the date is displayed in the browser.
... View more
‎Mar 14, 2024
07:21 AM
A further refinement, that I would recommend, is to use StructKeyExists() rather than isDefined().
... View more
‎Jan 25, 2024
07:21 AM
No exception is thrown because the timeout is for acquiring the lock, not what is being protected by the locked. In your example, the lock has been successfully acquired when execution reaches the sleep() function.
... View more
‎Jan 05, 2024
02:38 PM
Note that to avoid clumsy double quotes and concatenation you can change the arguments parameter syntax to the following: arguments='"#FilePath#" stdout', It's easier to read.
... View more
‎Nov 29, 2023
11:34 AM
It's possible it is failing because your function signature defines "filter" as an array, but you are using filter as a struct in the function body.
... View more
‎Jul 31, 2023
07:08 AM
Use something other than ColdFusion to test the API to take CF out of the equation. Use PostMan or even JavaScript, for example.
... View more
‎Jul 26, 2023
11:47 AM
In my experience, the CF extension does not like UNC paths, so avoid using those and only use mapped drives. I don't know if you have also bumped into that issue before or not, but it is worth knowing.
... View more
‎Jul 20, 2023
10:09 AM
I don't know what is causing the problem, but does it occur on any document you edit or only on some documents? I also hope you don't have to remove and re-install the extension. It might be worth installing VS Code on another computer and see if you get the same problem there.
... View more
‎Apr 21, 2023
01:42 PM
So at what point in the pipeline are you getting the "JSON parsing failure" message?
... View more
‎Apr 21, 2023
01:29 PM
Your first post shows a "JSON parsing failure" message. It's at that point that it appears that JSON is being assumed without verification. Are you in control of the entire pipeline or are you making a call to an external service, outside of your control?
... View more
‎Apr 21, 2023
01:15 PM
Firstly, it appears that you are assuming you are getting a JSON response, which of course fails when you get an HTTP response. You should first verify that the response you got is indeed JSON before trying to treat it as such. Next, have you used PostMan or cUrl or a similar utility to test the endpoint to verify that the response is what you expect?
... View more
‎Jan 26, 2023
09:52 AM
Charlie, I have not had a need to do this, so have not tried it. I leave it as an excercise for the OP. 🙂
... View more
‎Jan 26, 2023
09:29 AM
1 Upvote
This StackOverflow post apparently shows how to do it in ColdFusion.
... View more
‎Jan 10, 2023
10:36 AM
That is ColdFusion code, however, be sure to put it in a cfscript block.
... View more
‎Dec 02, 2022
09:38 AM
This VS Code extension works for debugging in a local development environment, which I use. I have colleagues that use a remote CF server for development and I noticed that the "Remote Server Settings" fields were not documented. I opened bug report CF-4215640 and some of the fields have now been briefly documented, but not all, and the report has been closed as fixed. The remote server port setting appears to get ignored and fails when trying to initiate a debugging session. I added a note to this effect on the bug report but it may get ingored because it is a closed issue. Before I open a new bug report I would be interested to know if anyone has managed to get debugging working when CF is running on a different machine than VS Code.
... View more
‎Nov 17, 2022
12:36 PM
What you're missing is a where clause in your select query. The query is very likely returning multiple rows and the first row does not match '449'.
... View more
‎Jul 08, 2022
02:11 PM
2 Upvotes
Java and javascript are very different animals. You appear to be talking about the latter, not the former.
... View more
‎Jun 15, 2022
01:50 PM
I use an application variable that is set to 0 when the application starts. In the application error handler, I increment that variable each time an error is emailed to me. Once the variable reaches a threshold, I don't send any more emails. Since my applications only get used during business hours, the variable is set each morning by the first person to use the app.
... View more
‎Mar 17, 2022
10:40 AM
1 Upvote
The documentation says that CORBA has been removed, not the array functions. You can still use the array functions.
... View more
‎Mar 11, 2022
07:19 AM
What are the asterisks around "function" and "return"? Your code is being mangled by the forum. Click on the "</>" button at the top of the reply text box, select "Java" as the language even though it is CF, and you will be able to include properly formatted code.
... View more
‎Mar 10, 2022
02:21 PM
1 Upvote
@Alan4a, show us your test code and we'll show you where you're going wrong.
... View more
‎Mar 03, 2022
08:16 AM
See the examples in CfDocs
... View more
‎Jan 28, 2022
09:13 AM
1 Upvote
@BKBK it doesn't throw an exception, it just shows the "struct [empty]" message.
... View more
‎Jan 28, 2022
08:15 AM
I don't know how they have things set up at TryCF.com but dumping the CGI scope shows content on all CF versions except 2021. Coincidence?
... View more
‎Jan 27, 2022
08:41 AM
1 Upvote
Why are you deserializing your file read? Don't do that and your code will succeed.
... View more
‎Jan 03, 2022
01:27 PM
To me, what this looks like is a spammer embedded a link in the User Agent string which, when rendered as the attachment shows, it becomes a clickable link. To my knowledge, the default CF error page does not include the User Agent string, so like Charlie says, this appears to be a custom error page.
... View more