Skip to main content
Participant
October 13, 2023
解決済み

RESTful API does not work after appling Update 11 of ColdFusion 2021

  • October 13, 2023
  • 返信数 2.
  • 1140 ビュー

At the Admin interface, I was not able to register any new REST service.

Existing REST APIs do not work. Showing 500 error at weblog.

    このトピックへの返信は締め切られました。
    解決に役立った回答 jianpingt85715541

    The issue has been resolved. After applying Update 12, application.cfc is required to register REST services. The connector is optional to re-config.

    Thank you all very much, especially Charlie.  I can say that the community is really helpful.

    返信数 2

    jianpingt85715541作成者解決!
    Participant
    November 20, 2023

    The issue has been resolved. After applying Update 12, application.cfc is required to register REST services. The connector is optional to re-config.

    Thank you all very much, especially Charlie.  I can say that the community is really helpful.

    Participating Frequently
    November 20, 2023

    That's interesting, because we tried that, too, but had the same issue.  I will try that again in CF2023. Thanks for letting us know!

    Participating Frequently
    November 17, 2023

    We are experiencing the same thing. It looks like the latest updates (11 or 12) to CF2021, and also our dev CF2023 are suddenly adding a subfolder to the REST URL.  So we used to have something like localhost:8500/rest/v1/app, but now it is requiring us to put the subfolder, so localhost:8500/rest/v1/api/app (the app.cfc is in the api subfolder of where we have the REST service directory registered).  Does anyone know if this is a new feature or a bug?

    Participating Frequently
    November 17, 2023

    Actually, my fault, I did not update the connector when I applied update 12 because I saw it wasn't required.  Didn't even think about the fact that I skipped update 11 and it was required in that one. As soon as I updated the connector, the REST services worked as before.

    Charlie Arehart
    Community Expert
    Community Expert
    November 17, 2023

    Glad you found that to be the solution. As for "not even thinking to update the connector", you're not alone in that oversight. It's sadly quite common--and often it does NOT matter that much (the changes may not be that signficant), but sometimes it does. Seems this is one of those.

     

    FWIW, the technote for the updates DO always have a table at the bottom indicating which updates DO (or do NOT) call for that update, such as that for CF2021 update 12. But it's easy to not notice (and the table's column header still says "recreation required", but since CF2016 it's a simple "upgrade" button in the wsconfig UI tool).

     

    Thanks for pointing out the issue and solution for folks. jianpingt85715541, does that solve the problem for you as well?

    /Charlie (troubleshooter, carehart. org)