Jump to content

Ocean West

Clients
  • Posts

    3,446
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Ocean West

  1. Quote

     

     
    Here is the summary of errors we received while attempting to send webhook events:
     
     
     
     
     
     
     
     
     
    23 requests returned HTTP 404, indicating the URL doesn’t exist. You should verify the endpoint URL is correct in your Stripe webhook settings.
     
     
     
     
    You need to return any status code between HTTP 200 to 299 for Stripe to consider the webhook event successfully delivered.
     

     

     

  2. The more I play with this I can see my hook receiver is going to be much more complex than it needs to be.

    Each even that triggers needs to have more 'filters' in place:

    forumsTopic_create for example blasts out anytime a post is made anywhere in any forum. I would have to receive all this noise (which could exceed a web hook limits) and then test to see if it happens to match something I want. Seems like an awful waste of bandwidth if I only wish to focus on one parent forum and its sub-forum.

    I would envision to for each of these hooks some wizard of options to restrict the content (pre-filter) before it is considered a viable action to send off to the url.

    Adds even more complexity if you send multiple events to same url as the payloads are vastly different and would first need to process logic based on the event being sent. I would almost have specific web hook for each event. 

     

  3. I understand the concept of oAuth for signups but in current offerings it seems that I would need to be the one in control of all the keys and setup of such Identity Provider.

    Since I host forums for several affiliates as first line of tech support for their services most of their employees monitor the forms and provide assistance. Whenever they have a change in staff I have to add them to their group.

    I was wondering if there was a way i could allow the lead person at that company a way to Setup their oAuth for managing their staff and all users who sign up that way are already granted the right permissions.

    I am on great terms with my affiliates and could possibly reach out and we could probably get the credentials setup but it would be nice if once I granted a user to manage their users it would be on them to add their oAuth info. Perhaps stored in a hash in the db so I it would be safe. 

    Curious if this is something others have done or considered.

  4. I use Mandrill / And SparkPost and when they send web hook for read/clicks etc the send an array 

    {
     "mandrill_events" :
      [ ]
    }

    This could be one object or many objects based on the cash they have in x minutes your receiver would iterate thru the array to handle each action. https://mailchimp.com/developer/transactional/docs/webhooks/

    (yes it is easier to handle one at a time instead of bulk actions)

    -

    There are no permissions applied to the webhook so everything is visible including email / ip / personal information;  most of the data is entirely not necessary in the payload when sending off to a third party service. In addition to being a glaring breach of privacy policy and terms of services, GDPR. I my current use case I am sending it to myself but if ever wanted to employ some third party service this would be a non-starter.

    -

    While this is being actively developed sending proper payload is critical sending as JSON would be really helpful I can't move forward with my project because the payload I receive is escaped and become invalid JSON.

    It would be nice to see some more configurations to selected the web hook perhaps being able to have a web hook log to see the data being sent and if you can visualize the payload with a JSON editor that would allow you to disable keys arrays that don't need to be sent to a given web hook. 

  5. I can confirm this issue spent some time with postman and reqestbin and send several tests:

    Ideally the method you send should just be application/json and not form-url-encoded if you must add a key to the that so that it can be properly parsed. But I would rather just receive JSON and not have to do extra decoding.

     

    617546392_ScreenShot2022-01-26at4_19_12PM.thumb.png.b63ec7e70e5ee90006a1eeca35cef005.png

  6. playing with this web hook it contains invalid JSON

    IPS\forums\Topic

    Something with the tags and missing the firstPost object key

    1382910848_ScreenShot2022-01-26at12_23_25PM.png.c2498406fbf0e277490cc65bd47f5474.png

     

    Update: it may be my receiver that is borking the code. - trying to convert from form-url-encoded to  clean json.

  7. another observation it seems that each event sends a single json object that triggers the event. I would suspect in the future that may be a limiting factor for larger or very busy sites.

    In other web hooks I've seen they would typically cache multiple events into one pay load by making it an array and once the system passes a threshold would send an array of one item or as many as a dozen items. 

     

  8. I find that the content for the web hook are rather verbose. I would be nice if we could filter and shape the content of the output. 

    I can foresee a wizard where we choose the "event"  and see a model of what is going to be sent and then pair down the objects / arrays being sent for particular web hook target url. 

    One main concern is when I sent an example it included my IP address and email that typically is a GDPR issue that a third party receiver should NOT need this data. 

×
×
  • Create New...