"Unexpected 302 status code received from MOCA server."

"Unexpected 302 status code received from MOCA server."

Problem

 I receive the error: "Unexpected 302 status code received from MOCA server." while trying to connect to a JDA WMS cloud instance in Cycle.

mceclip0.png

Solution

This error occurs when the cloud URL is used without /service on the end of the connection string. While other MOCA connection applications do not require the /service, Cycle must have it on the end in order to connect.

Example:

JDA Cloud URL:

https://instanceName.jdadelivers.com

Cycle connection step:

Given I connect to MOCA at "https://instanceName.jdadelivers.com/service" logged in as "USER" with password "PASSWORD"
    • Related Articles

    • "Unexpected error occurred communicating with MOCA server: General SSLEngine problem."

      Problem I receive the error: "Unexpected error occurred communicating with MOCA server: General SSLEngine problem." while trying to connect to a JDA WMS instance in Cycle. Solution This error occurs when there is an issue with SSL validation. Cycle ...
    • Can Cycle execute MOCA and Local Syntax?

      Problem Cycle Features built to interact with and test the JDA WMS need to run queries, execute statements and perform validations directly against the database. Solution JDA WMS provides a framework to ease database interaction called MOCA. Cycle ...
    • MOCA Server or Web API Step Timeout Error on Long Running Command

      You may see the error message below in your tests if you have a MOCA command or a Web API step that takes longer than 60 seconds to complete. This error message is due to Cycle expecting a response from the MOCA server or the Web API endpoint within ...
    • How to use MOCA Examples as a Scenario Outline data source

      With the enhancements to Scenario Outlines, it is now possible to use multiple sources for test parameter data. Previously, parameters were set in the Feature in an Examples section specified and maintained by the user. The addition of Example Row, ...
    • Cycle Will Not Open After Adding Server Tuning Arguments

      The Server Tuning option found in Application Preferences gives you the ability to add command line arguments to be passed to Java when the Cycle Application opens. These arguments are passed to Java when the Cycle Java process starts and can be very ...