Skip to main content
Nintex Community Menu Bar
Question

MailGun Integration

  • July 10, 2024
  • 6 replies
  • 237 views

Forum|alt.badge.img+18

I’m getting this error on a page with a REST API model pointing to MailGun.

  1. METHOD NOT ALLOWED: 405 Method Not Allowed

    Method Not Allowed

    The method GET is not allowed for the requested URL.

Except, I’m not trying to make any GET requests.

The only method I have on the model is a POST request:

What’s going on here?

6 replies

Forum|alt.badge.img+13

Are you getting this error in the Page Composer or at runtime?

What version of Skuid are you running?


Forum|alt.badge.img+18
  • Author
  • July 10, 2024

runtime

7.20


Forum|alt.badge.img+13

That’s really strange. Can you make sure that “Load Model data on page load” is un-checked? If you’re doing a “Create-only” REST Model as it appears you’re doing here, you probably want “Load Model data” OFF and “Create default row” ON.


Forum|alt.badge.img+18
  • Author
  • July 10, 2024

I don’t see a load model parameter:


Forum|alt.badge.img+13

Okay, I’ve recreated this. To fix, follow these steps:

1. Add a new method to your Model of type “Query”
2. Go to your Model’s properties and Uncheck “Load Model data on page load” (which will now be visible because you have a query method defined)
3. Remove the Query method.
4. Save your page and preview.

Ultimately we need to prevent this from happening, probably by automatically un-checking the “Load Model data” property if you change a Method’s type and you’re left without a “Query” Method, in which case there’s no method defined that could be used for Skuid to load data into the model.


Forum|alt.badge.img+18
  • Author
  • July 10, 2024

Thanks!