How to call the platform.api.get() in user.session.post.post_process?

Can you say how to debug the scripting execution in DSP? Just i want to check what’s the error is returning while the execution of platform.api.get(‘treat_well/_table/tw_venue’,options); ?

It seems that some header or something gets failure while calling

platform.api.get(‘treat_well/_table/tw_venue’,options); in user/session post_process.

But this api is working when i call in elsewhere except the user/session…