Why are all RPC calls being sent as POST requests? #540
              
                
                  
                  
                    Answered
                  
                  by
                    unnoq
                  
              
          
                  
                    
                      melodyclue
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         I’m using Next.js with oRPC and the TanStack integration. In my component, I call: However, even though I’m using useQuery, every request is issued as a POST instead of a GET. Is this the intended behavior of oRPC/TanStack integration, or am I missing some configuration?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            unnoq
          
      
      
        May 25, 2025 
      
    
    Replies: 1 comment 2 replies
-
| 
         This can help you: https://orpc.unnoq.com/docs/client/rpc-link#custom-request-method  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
@melodyclue oRPC doesn't provide built-in hints for selecting GET or POST methods. In tRPC, you have
.queryand.mutation; in Hono, there’s.get,.post, etc. With oRPC, you'll need to instruct it explicitly using your own custom hints. More details here: https://orpc.unnoq.com/docs/client/rpc-link#custom-request-method